Exception: Bunch::CompileError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bunch.rb

Instance Method Summary collapse

Constructor Details

#initialize(exception, filename) ⇒ CompileError

Returns a new instance of CompileError.



30
31
32
33
# File 'lib/bunch.rb', line 30

def initialize(exception, filename)
  @exception = exception
  @filename = filename
end

Instance Method Details

#messageObject



35
36
37
# File 'lib/bunch.rb', line 35

def message
  "#{@filename}: #{@exception.message}"
end