Documentation
¶
Overview ¶
Package errors provides common error types for the DA Orchestrator domain layer.
This package defines structured errors that can be used throughout the system to provide consistent error handling and reporting. All error types implement the standard error interface and support error unwrapping.
Package errors defines common error types used across the DA Orchestrator system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionError ¶
ExecutionError represents an error that occurs during graph or node execution.
func NewExecutionError ¶
func NewExecutionError(nodeID, message string, cause error) *ExecutionError
NewExecutionError creates a new ExecutionError.
func (*ExecutionError) Error ¶
func (e *ExecutionError) Error() string
Error implements the error interface.
func (*ExecutionError) Unwrap ¶
func (e *ExecutionError) Unwrap() error
Unwrap implements the errors.Unwrap interface.
type StateError ¶
StateError represents an error related to state management.
func NewStateError ¶
func NewStateError(key, message string, cause error) *StateError
NewStateError creates a new StateError.
func (*StateError) Error ¶
func (e *StateError) Error() string
Error implements the error interface.
func (*StateError) Unwrap ¶
func (e *StateError) Unwrap() error
Unwrap implements the errors.Unwrap interface.
type ToolError ¶
ToolError represents an error that occurs during tool execution.
func NewToolError ¶
NewToolError creates a new ToolError.
type ValidationError ¶
ValidationError represents an error that occurs during validation of domain entities.
func NewValidationError ¶
func NewValidationError(field, message string) *ValidationError
NewValidationError creates a new ValidationError.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.