Exception: Widow::CompileError

Inherits:
Exception
  • Object
show all
Defined in:
lib/widow.rb

Instance Method Summary collapse

Constructor Details

#initialize(filename, exception) ⇒ CompileError

Returns a new instance of CompileError.



10
11
12
# File 'lib/widow.rb', line 10

def initialize filename, exception
  super "#{filename} failed to compile:\n#{exception.message}\n\t#{exception.backtrace.join "\n\t"}"
end