Exception: BetterService::Errors::Workflowable::Configuration::DuplicateStepError

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

Overview

Raised when a workflow has duplicate step names

Each step in a workflow must have a unique name. This error is raised if you try to define multiple steps with the same name.

Examples:

Duplicate step names

class MyWorkflow < BetterService::Workflow
  step :create_user,
       with: User::CreateService

  step :create_user,  # Duplicate name!
       with: Profile::CreateService
end

# => raises DuplicateStepError during class definition

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