Exception: Coradoc::TransformationError
- Defined in:
- lib/coradoc/errors.rb
Overview
Error raised when transformation fails
Instance Attribute Summary collapse
-
#source_type ⇒ Object
readonly
Returns the value of attribute source_type.
-
#target_type ⇒ Object
readonly
Returns the value of attribute target_type.
Instance Method Summary collapse
-
#initialize(message, source_type: nil, target_type: nil) ⇒ TransformationError
constructor
Create a new transformation error.
Constructor Details
#initialize(message, source_type: nil, target_type: nil) ⇒ TransformationError
Create a new transformation error
260 261 262 263 264 |
# File 'lib/coradoc/errors.rb', line 260 def initialize(, source_type: nil, target_type: nil) @source_type = source_type @target_type = target_type super(()) end |
Instance Attribute Details
#source_type ⇒ Object (readonly)
Returns the value of attribute source_type.
253 254 255 |
# File 'lib/coradoc/errors.rb', line 253 def source_type @source_type end |
#target_type ⇒ Object (readonly)
Returns the value of attribute target_type.
253 254 255 |
# File 'lib/coradoc/errors.rb', line 253 def target_type @target_type end |