Exception: CBOR_DIAG::AppParseError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/cbor-diagnostic-app/0.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, pos) ⇒ AppParseError

Returns a new instance of AppParseError.



3
4
5
6
# File 'lib/cbor-diagnostic-app/0.rb', line 3

def initialize(msg, pos)
  @position = pos
  super(msg)
end

Instance Attribute Details

#positionObject

Returns the value of attribute position.



2
3
4
# File 'lib/cbor-diagnostic-app/0.rb', line 2

def position
  @position
end