Exception: Fit::ParseException

Inherits:
Exception
  • Object
show all
Defined in:
lib/fit/parse.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, offset) ⇒ ParseException

Returns a new instance of ParseException.



10
11
12
13
# File 'lib/fit/parse.rb', line 10

def initialize message, offset
  super message
  @error_offset = offset
end

Instance Attribute Details

#error_offsetObject (readonly)

Returns the value of attribute error_offset.



9
10
11
# File 'lib/fit/parse.rb', line 9

def error_offset
  @error_offset
end