errors

package
v0.1.150 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPermanent

func IsPermanent(err error) bool

IsPermanent checks if an error is a permanent error that should not be retried.

func NewPermanentError

func NewPermanentError(err error) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL