Exception: JSON::JSONRepairError
- Inherits:
-
StandardError
- Object
- StandardError
- JSON::JSONRepairError
- Defined in:
- lib/json/repair.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(message = nil, position = nil) ⇒ JSONRepairError
constructor
A new instance of JSONRepairError.
Constructor Details
#initialize(message = nil, position = nil) ⇒ JSONRepairError
Returns a new instance of JSONRepairError.
12 13 14 15 |
# File 'lib/json/repair.rb', line 12 def initialize( = nil, position = nil) super( && position ? "#{} at index #{position}" : ) @position = position end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
10 11 12 |
# File 'lib/json/repair.rb', line 10 def position @position end |