Exception: RangeComponentAttributes::TypeConversionError
- Inherits:
-
StandardError
- Object
- StandardError
- RangeComponentAttributes::TypeConversionError
- Defined in:
- lib/range_component_attributes/type_conversion.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) ⇒ TypeConversionError
constructor
A new instance of TypeConversionError.
Constructor Details
#initialize(original_error, target_type) ⇒ TypeConversionError
Returns a new instance of TypeConversionError.
5 6 7 8 |
# File 'lib/range_component_attributes/type_conversion.rb', line 5 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.
3 4 5 |
# File 'lib/range_component_attributes/type_conversion.rb', line 3 def original_error @original_error end |
#target_type ⇒ Object (readonly)
Returns the value of attribute target_type.
3 4 5 |
# File 'lib/range_component_attributes/type_conversion.rb', line 3 def target_type @target_type end |