Exception: Onboardable::FirstStepError

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

Overview

Error raised when attempting to navigate before the first step in the onboarding process.

Instance Method Summary collapse

Constructor Details

#initialize(step, expected_steps) ⇒ FirstStepError

Initializes a new FirstStepError indicating that the beginning of the step sequence has been reached.

Parameters:

  • The first step that was attempted to be preceded.

  • The complete list of valid steps in the onboarding process.



84
85
86
# File 'lib/onboardable/errors.rb', line 84

def initialize(step, expected_steps)
  super("Currently `#{step}` the first step. Available steps are: `#{expected_steps.join('`, `')}`.")
end