Exception: Parselly::ParseError

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

Direct Known Subclasses

LexError, SyntaxError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ ParseError

Returns a new instance of ParseError.



50
51
52
53
# File 'lib/parselly.rb', line 50

def initialize(error)
  @error = error
  super(error[:message])
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



48
49
50
# File 'lib/parselly.rb', line 48

def error
  @error
end