Exception: Transflow::StepError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/transflow/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.message)
    set_backtrace(original_error.backtrace)
  else
    super(input)
  end
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.



18
19
20
# File 'lib/transflow/errors.rb', line 18

def original_error
  @original_error
end