Exception: Retl::StepExecutionError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#causeObject (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_dataObject (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_dataObject (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

#stepObject (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_descriptionObject



13
14
15
# File 'lib/retl/errors/step_execution_error.rb', line 13

def step_description
  @step.description
end