Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedFormat = errors.New("unsupported image format") ErrInvalidDimensions = errors.New("invalid dimensions") ErrEmptyInput = errors.New("empty input") ErrContextCanceled = errors.New("context canceled") ErrWorkerPoolFull = errors.New("worker pool queue full") )
Sentinel errors for common failure modes.
Functions ¶
func IsCategory ¶
IsCategory reports whether err belongs to the given category.
func IsRetryable ¶
IsRetryable reports whether err represents a transient failure.
Types ¶
type Category ¶
type Category string
Category classifies error types for targeted handling and monitoring.
type ProcessingError ¶
type ProcessingError struct {
Category Category
Op string // operation name
Err error
Retryable bool
}
ProcessingError is the structured error type used throughout the module.
func New ¶
func New(category Category, op string, err error) *ProcessingError
New creates a non-retryable ProcessingError.
func Transient ¶
func Transient(op string, err error) *ProcessingError
Transient creates a retryable ProcessingError.
func (*ProcessingError) Error ¶
func (e *ProcessingError) Error() string
func (*ProcessingError) Unwrap ¶
func (e *ProcessingError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.