Exception: CommandModel::Convert::ConvertError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/command_model/convert.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_error, target_type) ⇒ ConvertError

Returns a new instance of ConvertError.



9
10
11
12
# File 'lib/command_model/convert.rb', line 9

def initialize(original_error, target_type)
  @original_error = original_error
  @target_type = target_type
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.



7
8
9
# File 'lib/command_model/convert.rb', line 7

def original_error
  @original_error
end

#target_typeObject (readonly)

Returns the value of attribute target_type.



7
8
9
# File 'lib/command_model/convert.rb', line 7

def target_type
  @target_type
end