errorinfo

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NonRetriableError added in v1.5.0

func NonRetriableError(err error) error

NonRetriableError ensures the specified error is NonRetriable. If the error is already NonRetriable, it returns that error unchanged. Otherwise, it returns a new, NonRetriable error.

Types

type NonRetriable

type NonRetriable interface {
	error
	NonRetriable()
}

NonRetriable represents a non-transient error. This works in conjunction with the retry policy, indicating that the error condition is idempotent, so no retries will be attempted. Use errors.As() to access this interface in the error chain.

Jump to

Keyboard shortcuts

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