errors

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 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 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 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