Documentation
¶
Overview ¶
Package errors provides structured error handling for Nebula
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRetryable ¶
IsRetryable returns true if the error is retryable
Types ¶
type Error ¶
type Error struct {
Type ErrorType
Message string
Cause error
Details map[string]interface{}
Stack []StackFrame
}
Error represents a structured error with context
func (*Error) WithDetail ¶
WithDetail adds a key-value detail to the error
type ErrorType ¶
type ErrorType string
ErrorType represents the category of error
const ( // ErrorTypeInternal represents internal system errors ErrorTypeInternal ErrorType = "internal" // ErrorTypeValidation represents validation errors ErrorTypeValidation ErrorType = "validation" // ErrorTypeNotFound represents resource not found errors ErrorTypeNotFound ErrorType = "not_found" // ErrorTypeConflict represents conflict errors ErrorTypeConflict ErrorType = "conflict" // ErrorTypeRateLimit represents rate limit errors ErrorTypeRateLimit ErrorType = "rate_limit" // ErrorTypeTimeout represents timeout errors ErrorTypeTimeout ErrorType = "timeout" // ErrorTypeConnection represents connection errors ErrorTypeConnection ErrorType = "connection" // ErrorTypeAuthentication represents authentication errors ErrorTypeAuthentication ErrorType = "authentication" // ErrorTypePermission represents permission errors ErrorTypePermission ErrorType = "permission" // ErrorTypeConfig represents configuration errors ErrorTypeConfig ErrorType = "config" // ErrorTypeData represents data processing errors ErrorTypeData ErrorType = "data" // ErrorTypeCapability represents capability/feature not supported errors ErrorTypeCapability ErrorType = "capability" // ErrorTypeHealth represents health check errors ErrorTypeHealth ErrorType = "health" // ErrorTypeFile represents file operation errors ErrorTypeFile ErrorType = "file" // ErrorTypeQuery represents query execution errors ErrorTypeQuery ErrorType = "query" )
type StackFrame ¶
StackFrame represents a single frame in the call stack
Click to show internal directories.
Click to hide internal directories.