Exception: Onboardable::StepStatusError

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

Overview

Error raised when an invalid status is encountered for a step.

Instance Method Summary collapse

Constructor Details

#initialize(status, expected_statuses) ⇒ StepStatusError

Initializes a new StepStatusError with details about the issue.

Parameters:

  • status (Symbol)

    The invalid status that triggered the error.

  • expected_statuses (Array<Symbol>)

    The list of valid statuses expected.



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