errors

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBadRequestError

func IsBadRequestError(err *rpc.Error) bool

IsBadRequestError returns whether the error is a bad request error

func IsInternalError

func IsInternalError(err *rpc.Error) bool

IsInternalError returns whether the error is an internal error

func IsResourceExhaustedErrorFlag added in v1.0.1

func IsResourceExhaustedErrorFlag(err *rpc.Error) bool

IsResourceExhaustedErrorFlag returns whether error has resource exhausted flag.

func IsTimeoutError added in v1.2.0

func IsTimeoutError(err *rpc.Error) bool

IsTimeoutError returns whether the error is an internal error due to a timeout.

func NewBadRequestError

func NewBadRequestError(err error) *rpc.Error

NewBadRequestError creates a new bad request error

func NewBadRequestWriteBatchRawError

func NewBadRequestWriteBatchRawError(index int, err error) *rpc.WriteBatchRawError

NewBadRequestWriteBatchRawError creates a new bad request write batch error

func NewInternalError

func NewInternalError(err error) *rpc.Error

NewInternalError creates a new internal error

func NewResourceExhaustedError added in v1.0.1

func NewResourceExhaustedError(err error) *rpc.Error

NewResourceExhaustedError creates a new resource exhausted error.

func NewTimeoutError added in v1.2.0

func NewTimeoutError(err error) *rpc.Error

NewTimeoutError creates a new timeout error.

func NewWriteBatchRawError

func NewWriteBatchRawError(index int, err error) *rpc.WriteBatchRawError

NewWriteBatchRawError creates a new write batch error

Types

This section is empty.

Jump to

Keyboard shortcuts

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