Exception: Onboardable::StepError
- Defined in:
- lib/onboardable/errors.rb
Overview
Error raised when an invalid step is encountered within the onboarding process.
Instance Method Summary collapse
-
#initialize(step, expected_steps) ⇒ StepError
constructor
Initializes a new StepError with details about the issue.
Constructor Details
#initialize(step, expected_steps) ⇒ StepError
Initializes a new StepError with details about the issue.
44 45 46 |
# File 'lib/onboardable/errors.rb', line 44 def initialize(step, expected_steps) super("Invalid step: `#{step}`. Must be one of: `#{expected_steps.join('`, `')}`.") end |