Exception: Emf::ParseError

Inherits:
Error
  • Object
show all
Defined in:
lib/emf/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset:, record_code:, message:) ⇒ ParseError

Returns a new instance of ParseError.



11
12
13
14
15
# File 'lib/emf/error.rb', line 11

def initialize(offset:, record_code:, message:)
  @offset = offset
  @record_code = record_code
  super(message)
end

Instance Attribute Details

#offsetObject (readonly)

Returns the value of attribute offset.



9
10
11
# File 'lib/emf/error.rb', line 9

def offset
  @offset
end

#record_codeObject (readonly)

Returns the value of attribute record_code.



9
10
11
# File 'lib/emf/error.rb', line 9

def record_code
  @record_code
end