Exception: Ridley::Errors::FromFileParserError

Inherits:
RidleyError
  • Object
show all
Defined in:
lib/ridley/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(filename, error) ⇒ FromFileParserError

Returns a new instance of FromFileParserError.



46
47
48
49
50
51
# File 'lib/ridley/errors.rb', line 46

def initialize(filename, error)
  super "Could not parse `#{filename}': #{error.message}"

  # Populate the backtrace with the actual error though
  set_backtrace(error.backtrace)
end