Documentation ¶
Index ¶
- func IsBadRequestError(err *rpc.Error) bool
- func IsInternalError(err *rpc.Error) bool
- func IsResourceExhaustedErrorFlag(err *rpc.Error) bool
- func IsTimeoutError(err *rpc.Error) bool
- func NewBadRequestError(err error) *rpc.Error
- func NewBadRequestWriteBatchRawError(index int, err error) *rpc.WriteBatchRawError
- func NewInternalError(err error) *rpc.Error
- func NewResourceExhaustedError(err error) *rpc.Error
- func NewTimeoutError(err error) *rpc.Error
- func NewWriteBatchRawError(index int, err error) *rpc.WriteBatchRawError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBadRequestError ¶
IsBadRequestError returns whether the error is a bad request error
func IsInternalError ¶
IsInternalError returns whether the error is an internal error
func IsResourceExhaustedErrorFlag ¶ added in v1.0.1
IsResourceExhaustedErrorFlag returns whether error has resource exhausted flag.
func IsTimeoutError ¶ added in v1.2.0
IsTimeoutError returns whether the error is an internal error due to a timeout.
func NewBadRequestError ¶
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 ¶
NewInternalError creates a new internal error
func NewResourceExhaustedError ¶ added in v1.0.1
NewResourceExhaustedError creates a new resource exhausted error.
func NewTimeoutError ¶ added in v1.2.0
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.