Exception: FBO::ParserError
- Inherits:
-
StandardError
- Object
- StandardError
- FBO::ParserError
- Defined in:
- lib/fbo/exceptions.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(msg, data: nil, e: nil) ⇒ ParserError
constructor
A new instance of ParserError.
Constructor Details
#initialize(msg, data: nil, e: nil) ⇒ ParserError
Returns a new instance of ParserError.
5 6 7 8 9 10 |
# File 'lib/fbo/exceptions.rb', line 5 def initialize(msg, data: nil, e: nil) super(msg) @data = data @parent = e set_backtrace(e.backtrace) if e end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/fbo/exceptions.rb', line 3 def data @data end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
3 4 5 |
# File 'lib/fbo/exceptions.rb', line 3 def parent @parent end |