package
Version:
v0.15.0
Opens a new window with list of versions in this module.
Published: Jan 10, 2025
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New creates a new error with a code and message.
WithFields adds structured context to an error.
Wrap wraps an existing error with additional context.
Error represents a structured error with context.
As implements error type casting for errors.As.
Is implements error matching.
ErrorCode defines known error types in the system.
const (
Unknown ErrorCode = iota
InvalidInput
ValidationFailed
ResourceNotFound
Timeout
RateLimitExceeded
LLMGenerationFailed
TokenLimitExceeded
InvalidResponse
WorkflowExecutionFailed
StepExecutionFailed
InvalidWorkflowState
)
type Fields map[string]interface{}
Fields carries structured data about the error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.