errors

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentError

type AgentError struct {
	AgentName string
	Operation string
	Err       error
}

AgentError represents an error that occurred during agent operations

func NewAgentError

func NewAgentError(agentName, operation string, err error) *AgentError

NewAgentError creates a new AgentError

func (*AgentError) Error

func (e *AgentError) Error() string

func (*AgentError) Unwrap

func (e *AgentError) Unwrap() error

type CommunicationError

type CommunicationError struct {
	AgentName string
	Type      string // "timeout", "network", "protocol", etc.
	Message   string
	Err       error
}

CommunicationError represents an error during agent communication

func NewCommunicationError

func NewCommunicationError(agentName, errorType, message string, err error) *CommunicationError

NewCommunicationError creates a new CommunicationError

func (*CommunicationError) Error

func (e *CommunicationError) Error() string

func (*CommunicationError) Unwrap

func (e *CommunicationError) Unwrap() error

type ConfigError

type ConfigError struct {
	Field   string
	Value   interface{}
	Message string
	Err     error
}

ConfigError represents a configuration-related error

func NewConfigError

func NewConfigError(field string, value interface{}, message string) *ConfigError

NewConfigError creates a new ConfigError

func NewConfigErrorWithCause

func NewConfigErrorWithCause(field string, value interface{}, message string, err error) *ConfigError

NewConfigErrorWithCause creates a new ConfigError with an underlying cause

func (*ConfigError) Error

func (e *ConfigError) Error() string

func (*ConfigError) Unwrap

func (e *ConfigError) Unwrap() error

type InitializationError

type InitializationError struct {
	Component string
	Reason    string
	Err       error
}

InitializationError represents an error during agent or system initialization

func NewInitializationError

func NewInitializationError(component, reason string, err error) *InitializationError

NewInitializationError creates a new InitializationError

func (*InitializationError) Error

func (e *InitializationError) Error() string

func (*InitializationError) Unwrap

func (e *InitializationError) Unwrap() error

type OrchestratorError

type OrchestratorError struct {
	Mode    string
	Turn    int
	Message string
	Err     error
}

OrchestratorError represents an error in the orchestrator

func NewOrchestratorError

func NewOrchestratorError(mode string, turn int, message string, err error) *OrchestratorError

NewOrchestratorError creates a new OrchestratorError

func (*OrchestratorError) Error

func (e *OrchestratorError) Error() string

func (*OrchestratorError) Unwrap

func (e *OrchestratorError) Unwrap() error

type ValidationError

type ValidationError struct {
	Field   string
	Value   interface{}
	Message string
}

ValidationError represents a validation error

func NewValidationError

func NewValidationError(field string, value interface{}, message string) *ValidationError

NewValidationError creates a new ValidationError

func (*ValidationError) Error

func (e *ValidationError) Error() string

Jump to

Keyboard shortcuts

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