Exception: Ting::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Ting::ParseError
- Defined in:
- lib/ting/exception.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(input, position, error = nil) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(input, position, error = nil) ⇒ ParseError
Returns a new instance of ParseError.
6 7 8 9 10 |
# File 'lib/ting/exception.rb', line 6 def initialize(input, position, error = nil) super(error) @input=input @position=position end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
4 5 6 |
# File 'lib/ting/exception.rb', line 4 def input @input end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
4 5 6 |
# File 'lib/ting/exception.rb', line 4 def position @position end |