Exception: Browserbeam::StepExecutionError

Inherits:
Error
  • Object
show all
Defined in:
lib/browserbeam/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#code, #context, #request_id, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message, step_index: 0, action: "", **kwargs) ⇒ StepExecutionError

Returns a new instance of StepExecutionError.



48
49
50
51
52
# File 'lib/browserbeam/errors.rb', line 48

def initialize(message, step_index: 0, action: "", **kwargs)
  super(message, **kwargs)
  @step_index = step_index
  @action = action
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



46
47
48
# File 'lib/browserbeam/errors.rb', line 46

def action
  @action
end

#step_indexObject (readonly)

Returns the value of attribute step_index.



46
47
48
# File 'lib/browserbeam/errors.rb', line 46

def step_index
  @step_index
end