Exception: Onboardable::StepConversionError

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

Overview

Error raised when an object cannot be converted to a Step.

Instance Method Summary collapse

Constructor Details

#initialize(klass, step) ⇒ StepConversionError

Initializes a new instance of StepConversionError.

Parameters:

  • klass (Class)

    The class that failed to convert.

  • step (unknown)

    The object that was attempted to be converted to a Step.



24
25
26
# File 'lib/onboardable/errors.rb', line 24

def initialize(klass, step)
  super("can't convert #{klass} to Step (#{klass}#to_onboarding_step gives #{step.class}).")
end