errorinfo

package
v0.0.0-...-45adee8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NonRetriableError

func NonRetriableError(err error) error

NonRetriableError marks the specified error as non-retriable. This function takes an error as input and returns a new error that is marked as non-retriable.

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