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.



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

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