Exception: Onboardable::StepStatusError
- Defined in:
- lib/onboardable/errors.rb
Overview
Error raised when an invalid status is encountered for a step.
Instance Method Summary collapse
-
#initialize(status, expected_statuses) ⇒ StepStatusError
constructor
Initializes a new StepStatusError with details about the issue.
Constructor Details
#initialize(status, expected_statuses) ⇒ StepStatusError
Initializes a new StepStatusError with details about the issue.
88 89 90 |
# File 'lib/onboardable/errors.rb', line 88 def initialize(status, expected_statuses) super("Invalid status: `#{status}`. Must be one of: `#{expected_statuses.join('`, `')}`.") end |