errors

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 5 modules, 16 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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