sdkerrors

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented     = errors.New("not implemented")
	ErrRPC                = errors.New("rpc")
	ErrAlreadyExists      = errors.New("already exists")
	ErrNotFound           = errors.New("not found")
	ErrConflict           = errors.New("conflict")
	ErrUnauthorized       = errors.New("unauthorized")
	ErrUnauthenticated    = errors.New("unauthenticated")
	ErrUnknown            = errors.New("unknown")
	ErrFailedPrecondition = errors.New("failed precondition")
	ErrLimitExceeded      = errors.New("limit exceeded")
)

Functions

func AsConnectError added in v0.3.0

func AsConnectError(err error) error

re-wrap sdk as connect error

func IgnoreNotFoundErr

func IgnoreNotFoundErr[T any](in T, err error) (T, error)

func NewInvalidArgumentError added in v0.3.0

func NewInvalidArgumentError(f string, vs ...any) error

Types

type ErrInvalidArgument

type ErrInvalidArgument struct {
	Underlying error
}

func (ErrInvalidArgument) Error added in v0.3.0

func (e ErrInvalidArgument) Error() string

func (ErrInvalidArgument) Unwrap added in v0.3.0

func (e ErrInvalidArgument) Unwrap() error

Jump to

Keyboard shortcuts

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