Exception: Porch::InvalidStepTypeError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/porch/errors/invalid_step_type_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step) ⇒ InvalidStepTypeError

Returns a new instance of InvalidStepTypeError.



5
6
7
8
# File 'lib/porch/errors/invalid_step_type_error.rb', line 5

def initialize(step)
  @step = step
  super "Step type #{step.class.name} is not handled"
end

Instance Attribute Details

#stepObject (readonly)

Returns the value of attribute step.



3
4
5
# File 'lib/porch/errors/invalid_step_type_error.rb', line 3

def step
  @step
end