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.



13
14
15
16
# File 'lib/odin/transform/transform_engine.rb', line 13

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/odin/transform/transform_engine.rb', line 10

def code
  @code
end

#fieldObject

Returns the value of attribute field.



11
12
13
# File 'lib/odin/transform/transform_engine.rb', line 11

def field
  @field
end

#segmentObject

Returns the value of attribute segment.



11
12
13
# File 'lib/odin/transform/transform_engine.rb', line 11

def segment
  @segment
end