errors

package
v0.0.0-...-3e647be Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RetryableError error = errors.New("Retryable Error")

value to use with errors.Is() to determine if an error chain contains a retryable error

Functions

func NewBadConnectionError

func NewBadConnectionError(err error) error

func NewDriverError

func NewDriverError(ctx context.Context, msg string, err error) *driverError

func NewExecutionError

func NewExecutionError(ctx context.Context, msg string, err error, opStatusResp *cli_service.TGetOperationStatusResp) *executionError

func NewRequestError

func NewRequestError(ctx context.Context, msg string, err error) *requestError

func NewRetryableError

func NewRetryableError(err error, retryAfterHdr string) error

func WrapErr

func WrapErr(err error, msg string) error

wraps an error and adds trace if not already present

func WrapErrf

func WrapErrf(err error, format string, args ...interface{}) error

adds a stack trace if not already present

Types

This section is empty.

Jump to

Keyboard shortcuts

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