pacherr

package
v2.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrBreak is an error used to break out of call back based iteration,
	// should be swallowed by iteration functions and treated as successful
	// iteration.
	ErrBreak = errors.Errorf("BREAK")
)

Functions

func IsExists

func IsExists(err error) bool

func IsNotExist

func IsNotExist(err error) bool

func NewExists

func NewExists(collection, id string) error

func NewNotExist

func NewNotExist(collection, id string) error

func WrapTransient

func WrapTransient(err error, minWait time.Duration) error

Types

type ErrExists

type ErrExists struct {
	Collection string
	ID         string
}

func (ErrExists) Error

func (e ErrExists) Error() string

func (ErrExists) GRPCStatus

func (e ErrExists) GRPCStatus() *status.Status

type ErrNotExist

type ErrNotExist struct {
	Collection string
	ID         string
}

func (ErrNotExist) Error

func (e ErrNotExist) Error() string

func (ErrNotExist) GRPCStatus

func (e ErrNotExist) GRPCStatus() *status.Status

type TransientError

type TransientError struct {
	Err     error
	MinWait time.Duration
}

func (*TransientError) Error

func (e *TransientError) Error() string

func (*TransientError) GRPCStatus

func (e *TransientError) GRPCStatus() *status.Status

func (*TransientError) Unwrap

func (e *TransientError) Unwrap() error

Jump to

Keyboard shortcuts

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