Exception: FBO::ParserError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



3
4
5
# File 'lib/fbo/exceptions.rb', line 3

def data
  @data
end

#parentObject (readonly)

Returns the value of attribute parent.



3
4
5
# File 'lib/fbo/exceptions.rb', line 3

def parent
  @parent
end