Exception: Transflow::StepError
- Inherits:
-
StandardError
- Object
- StandardError
- Transflow::StepError
- Defined in:
- lib/transflow/errors.rb
Instance Attribute Summary collapse
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
Instance Method Summary collapse
-
#initialize(input = nil) ⇒ StepError
constructor
A new instance of StepError.
Constructor Details
#initialize(input = nil) ⇒ StepError
Returns a new instance of StepError.
20 21 22 23 24 25 26 27 28 |
# File 'lib/transflow/errors.rb', line 20 def initialize(input = nil) if input.kind_of?(StandardError) @original_error = input super(@original_error.) set_backtrace(original_error.backtrace) else super(input) end end |
Instance Attribute Details
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
18 19 20 |
# File 'lib/transflow/errors.rb', line 18 def original_error @original_error end |