Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithFields ¶
WithFields adds structured context to an error.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error represents a structured error with context.
type ErrorCode ¶
type ErrorCode int
ErrorCode defines known error types in the system.
const ( // Core error codes. Unknown ErrorCode = iota InvalidInput ValidationFailed ResourceNotFound Timeout RateLimitExceeded Canceled ResourceExhausted // For scenarios where a resource limit is reached // LLM specific errors. LLMGenerationFailed TokenLimitExceeded InvalidResponse ModelNotSupported ProviderNotFound ConfigurationError UnsupportedOperation // Workflow errors. WorkflowExecutionFailed StepExecutionFailed InvalidWorkflowState )
Click to show internal directories.
Click to hide internal directories.