errors

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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

type ExecutionError struct {
	NodeID  string
	Message string
	Cause   error
}

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

type StateError struct {
	Key     string
	Message string
	Cause   error
}

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

type ToolError struct {
	ToolName string
	Message  string
	Cause    error
}

ToolError represents an error that occurs during tool execution.

func NewToolError

func NewToolError(toolName, message string, cause error) *ToolError

NewToolError creates a new ToolError.

func (*ToolError) Error

func (e *ToolError) Error() string

Error implements the error interface.

func (*ToolError) Unwrap

func (e *ToolError) Unwrap() error

Unwrap implements the errors.Unwrap interface.

type ValidationError

type ValidationError struct {
	Field   string
	Message string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL