package errorinfo

import "github.com/Azure/azure-sdk-for-go/sdk/internal/errorinfo"

Index

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.

Source Files

doc.go errorinfo.go

Version
v1.11.1 (latest)
Published
Apr 7, 2025
Platform
js/wasm
Last checked
9 minutes ago

Tools for package owners.