Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPermanent ¶
IsPermanent checks if an error is a permanent error that should not be retried.
func NewPermanentError ¶
NewPermanentError creates a new permanent error that will not be retried.
Types ¶
type PermanentError ¶
type PermanentError struct {
Err error
}
PermanentError wraps an error to indicate it should not be retried. Components can return this to signal that an operation has failed permanently (e.g., validation error, business logic error) and should not be retried.
func (*PermanentError) Error ¶
func (e *PermanentError) Error() string
func (*PermanentError) Unwrap ¶
func (e *PermanentError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.