Exception: Parselly::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Parselly::ParseError
- Defined in:
- lib/parselly.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ ParseError
constructor
A new instance of ParseError.
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
#error ⇒ Object (readonly)
Returns the value of attribute error.
48 49 50 |
# File 'lib/parselly.rb', line 48 def error @error end |