Exception: Retl::StepExecutionError
- Inherits:
-
StandardError
- Object
- StandardError
- Retl::StepExecutionError
- Defined in:
- lib/retl/errors/step_execution_error.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#current_data ⇒ Object
readonly
Returns the value of attribute current_data.
-
#input_data ⇒ Object
readonly
Returns the value of attribute input_data.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
-
#initialize(input_data: nil, current_data: nil, step: nil, cause: $!) ⇒ StepExecutionError
constructor
A new instance of StepExecutionError.
- #step_description ⇒ Object
Constructor Details
#initialize(input_data: nil, current_data: nil, step: nil, cause: $!) ⇒ StepExecutionError
5 6 7 8 9 10 11 |
# File 'lib/retl/errors/step_execution_error.rb', line 5 def initialize(input_data: nil, current_data: nil, step: nil, cause: $!) @input_data, @current_data = input_data, current_data @step, @cause = step, cause super("#{cause} (at step: #{step_description}))") set_backtrace(cause.backtrace) end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
3 4 5 |
# File 'lib/retl/errors/step_execution_error.rb', line 3 def cause @cause end |
#current_data ⇒ Object (readonly)
Returns the value of attribute current_data.
3 4 5 |
# File 'lib/retl/errors/step_execution_error.rb', line 3 def current_data @current_data end |
#input_data ⇒ Object (readonly)
Returns the value of attribute input_data.
3 4 5 |
# File 'lib/retl/errors/step_execution_error.rb', line 3 def input_data @input_data end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
3 4 5 |
# File 'lib/retl/errors/step_execution_error.rb', line 3 def step @step end |
Instance Method Details
#step_description ⇒ Object
13 14 15 |
# File 'lib/retl/errors/step_execution_error.rb', line 13 def step_description @step.description end |