status

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortedError

func AbortedError(msg string) error

func AbortedErrorf

func AbortedErrorf(format string, a ...interface{}) error

func AlreadyExistsError

func AlreadyExistsError(msg string) error

func AlreadyExistsErrorf

func AlreadyExistsErrorf(format string, a ...interface{}) error

func CanceledError

func CanceledError(msg string) error

func CanceledErrorf

func CanceledErrorf(format string, a ...interface{}) error

func DataLossError

func DataLossError(msg string) error

func DataLossErrorf

func DataLossErrorf(format string, a ...interface{}) error

func DeadlineExceededError

func DeadlineExceededError(msg string) error

func DeadlineExceededErrorf

func DeadlineExceededErrorf(format string, a ...interface{}) error

func FailedPreconditionError

func FailedPreconditionError(msg string) error

func FailedPreconditionErrorf

func FailedPreconditionErrorf(format string, a ...interface{}) error

func InternalError

func InternalError(msg string) error

func InternalErrorf

func InternalErrorf(format string, a ...interface{}) error

func InvalidArgumentError

func InvalidArgumentError(msg string) error

func InvalidArgumentErrorf

func InvalidArgumentErrorf(format string, a ...interface{}) error

func IsAbortedError

func IsAbortedError(err error) bool

func IsAlreadyExistsError

func IsAlreadyExistsError(err error) bool

func IsCanceledError

func IsCanceledError(err error) bool

func IsDataLossError

func IsDataLossError(err error) bool

func IsDeadlineExceededError

func IsDeadlineExceededError(err error) bool

func IsFailedPreconditionError

func IsFailedPreconditionError(err error) bool

func IsInternalError

func IsInternalError(err error) bool

func IsInvalidArgumentError

func IsInvalidArgumentError(err error) bool

func IsNotFoundError

func IsNotFoundError(err error) bool

func IsOutOfRangeError

func IsOutOfRangeError(err error) bool

func IsPermissionDeniedError

func IsPermissionDeniedError(err error) bool

func IsResourceExhaustedError

func IsResourceExhaustedError(err error) bool

func IsUnauthenticatedError

func IsUnauthenticatedError(err error) bool

func IsUnavailableError

func IsUnavailableError(err error) bool

func IsUnimplementedError

func IsUnimplementedError(err error) bool

func IsUnknownError

func IsUnknownError(err error) bool

func Message

func Message(err error) string

Message extracts the error message from a given error, which for gRPC errors is just the "desc" part of the error.

func NotFoundError

func NotFoundError(msg string) error

func NotFoundErrorf

func NotFoundErrorf(format string, a ...interface{}) error

func OK

func OK() error

func OutOfRangeError

func OutOfRangeError(msg string) error

func OutOfRangeErrorf

func OutOfRangeErrorf(format string, a ...interface{}) error

func PermissionDeniedError

func PermissionDeniedError(msg string) error

func PermissionDeniedErrorf

func PermissionDeniedErrorf(format string, a ...interface{}) error

func ResourceExhaustedError

func ResourceExhaustedError(msg string) error

func ResourceExhaustedErrorf

func ResourceExhaustedErrorf(format string, a ...interface{}) error

func UnauthenticatedError

func UnauthenticatedError(msg string) error

func UnauthenticatedErrorf

func UnauthenticatedErrorf(format string, a ...interface{}) error

func UnavailableError

func UnavailableError(msg string) error

func UnavailableErrorf

func UnavailableErrorf(format string, a ...interface{}) error

func UnimplementedError

func UnimplementedError(msg string) error

func UnimplementedErrorf

func UnimplementedErrorf(format string, a ...interface{}) error

func UnknownError

func UnknownError(msg string) error

func UnknownErrorf

func UnknownErrorf(format string, a ...interface{}) error

func WrapError

func WrapError(err error, msg string) error

Wrap adds additional context to an error, preserving the underlying status code.

func WrapErrorf

func WrapErrorf(err error, format string, a ...interface{}) error

Wrapf is the "Printf" version of `Wrap`.

Types

type StackTrace

type StackTrace = errors.StackTrace

Jump to

Keyboard shortcuts

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