Exception: BetterService::Errors::Workflowable::Configuration::StepNotFoundError

Inherits:
WorkflowConfigurationError show all
Defined in:
lib/better_service/errors/workflowable/configuration/step_not_found_error.rb

Overview

Raised when a referenced workflow step is not found

This error is raised when trying to access a step that doesn’t exist in the workflow definition, such as in dependencies or conditionals.

Examples:

Step not found

class MyWorkflow < BetterService::Workflow
  step :first_step,
       with: FirstService

  step :second_step,
       with: SecondService,
       if: ->(ctx) { ctx.non_existent_step.success? }  # Step doesn't exist
end

MyWorkflow.new(user, params: {}).call
# => raises StepNotFoundError

Instance Attribute Summary

Attributes inherited from BetterServiceError

#code, #context, #original_error, #timestamp

Method Summary

Methods inherited from BetterServiceError

#backtrace, #detailed_message, #initialize, #inspect, #to_h

Constructor Details

This class inherits a constructor from BetterService::BetterServiceError