Exception: Rager::Errors::ParseError

Inherits:
Rager::Error
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/rager/errors/parse_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(description, body = nil) ⇒ ParseError

Returns a new instance of ParseError.



12
13
14
15
16
# File 'lib/rager/errors/parse_error.rb', line 12

def initialize(description, body = nil)
  message = description
  message += " -- #{body}" if body
  super(message)
end