Exception: CommandModel::Convert::ConvertError
- Inherits:
-
StandardError
- Object
- StandardError
- CommandModel::Convert::ConvertError
- Defined in:
- lib/command_model/convert.rb
Instance Attribute Summary collapse
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
-
#target_type ⇒ Object
readonly
Returns the value of attribute target_type.
Instance Method Summary collapse
-
#initialize(original_error, target_type) ⇒ ConvertError
constructor
A new instance of ConvertError.
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_error ⇒ Object (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_type ⇒ Object (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 |