Exception: Odin::Transform::TransformEngine::TransformError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/odin/transform/transform_engine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code: "E001") ⇒ TransformError

Returns a new instance of TransformError.



26
27
28
29
# File 'lib/odin/transform/transform_engine.rb', line 26

def initialize(message, code: "E001")
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



23
24
25
# File 'lib/odin/transform/transform_engine.rb', line 23

def code
  @code
end

#fieldObject

Returns the value of attribute field.



24
25
26
# File 'lib/odin/transform/transform_engine.rb', line 24

def field
  @field
end

#segmentObject

Returns the value of attribute segment.



24
25
26
# File 'lib/odin/transform/transform_engine.rb', line 24

def segment
  @segment
end