errors

package
v0.4.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aborted

func Aborted(err error) error

func Abortedd

func Abortedd(err error, details ...proto.Message) error

func Abortedf

func Abortedf(msg string, args ...interface{}) error

func AlreadyExists

func AlreadyExists(err error) error

func AlreadyExistsd

func AlreadyExistsd(err error, details ...proto.Message) error

func AlreadyExistsf

func AlreadyExistsf(msg string, args ...interface{}) error

func BadRequestDetails

func BadRequestDetails(fd ...string) *errdetails.BadRequest

BadRequestDetails returns an error details for an invalid argument. fd is a list of field / description pairs.

func Canceled

func Canceled(err error) error

func Canceledd

func Canceledd(err error, details ...proto.Message) error

func Canceledf

func Canceledf(msg string, args ...interface{}) error

func DataLoss

func DataLoss(err error) error

func DataLossd

func DataLossd(err error, details ...proto.Message) error

func DataLossf

func DataLossf(msg string, args ...interface{}) error

func DeadlineExceeded

func DeadlineExceeded(err error) error

func DeadlineExceededd

func DeadlineExceededd(err error, details ...proto.Message) error

func DeadlineExceededf

func DeadlineExceededf(msg string, args ...interface{}) error

func FailedPrecondition

func FailedPrecondition(err error) error

func FailedPreconditiond

func FailedPreconditiond(err error, details ...proto.Message) error

func FailedPreconditionf

func FailedPreconditionf(msg string, args ...interface{}) error

func Internal

func Internal(err error) error

func Internald

func Internald(err error, details ...proto.Message) error

func Internalf

func Internalf(msg string, args ...interface{}) error

func InvalidArgument

func InvalidArgument(err error) error

func InvalidArgumentd

func InvalidArgumentd(err error, details ...proto.Message) error

func InvalidArgumentf

func InvalidArgumentf(msg string, args ...interface{}) error

func IsAborted

func IsAborted(err error) bool

func IsAlreadyExists

func IsAlreadyExists(err error) bool

func IsCanceled

func IsCanceled(err error) bool

func IsContextCanceled

func IsContextCanceled(err error) bool

func IsContextDeadlineExceeded

func IsContextDeadlineExceeded(err error) bool

func IsDataLoss

func IsDataLoss(err error) bool

func IsDeadlineExceeded

func IsDeadlineExceeded(err error) bool

func IsFailedPrecondition

func IsFailedPrecondition(err error) bool

func IsInternal

func IsInternal(err error) bool

func IsInvalidArgument

func IsInvalidArgument(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func IsOutOfRange

func IsOutOfRange(err error) bool

func IsPermissionDenied

func IsPermissionDenied(err error) bool

func IsResourceExhausted

func IsResourceExhausted(err error) bool

func IsUnauthenticated

func IsUnauthenticated(err error) bool

func IsUnavailable

func IsUnavailable(err error) bool

func IsUnimplemented

func IsUnimplemented(err error) bool

func IsUnknown

func IsUnknown(err error) bool

func NotFound

func NotFound(err error) error

func NotFoundd

func NotFoundd(err error, details ...proto.Message) error

func NotFoundf

func NotFoundf(msg string, args ...interface{}) error

func OutOfRange

func OutOfRange(err error) error

func OutOfRanged

func OutOfRanged(err error, details ...proto.Message) error

func OutOfRangef

func OutOfRangef(msg string, args ...interface{}) error

func PermissionDenied

func PermissionDenied(err error) error

func PermissionDeniedd

func PermissionDeniedd(err error, details ...proto.Message) error

func PermissionDeniedf

func PermissionDeniedf(msg string, args ...interface{}) error

func ResourceExhausted

func ResourceExhausted(err error) error

func ResourceExhaustedd

func ResourceExhaustedd(err error, details ...proto.Message) error

func ResourceExhaustedf

func ResourceExhaustedf(msg string, args ...interface{}) error

func Unauthenticated

func Unauthenticated(err error) error

func Unauthenticatedd

func Unauthenticatedd(err error, details ...proto.Message) error

func Unauthenticatedf

func Unauthenticatedf(msg string, args ...interface{}) error

func Unavailable

func Unavailable(err error) error

func Unavailabled

func Unavailabled(err error, details ...proto.Message) error

func Unavailablef

func Unavailablef(msg string, args ...interface{}) error

func Unimplemented

func Unimplemented(err error) error

func Unimplementedd

func Unimplementedd(err error, details ...proto.Message) error

func Unimplementedf

func Unimplementedf(msg string, args ...interface{}) error

func Unwrap

func Unwrap(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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