Documentation
¶
Overview ¶
Package errors re-exports cockroachdb/errors utilities and defines platform-level sentinel error values and HTTP/gRPC error conversion helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( New = crdberrors.New Newf = crdberrors.Newf Errorf = crdberrors.Errorf Wrap = crdberrors.Wrap Wrapf = crdberrors.Wrapf EncodeError = crdberrors.EncodeError DecodeError = crdberrors.DecodeError )
Re-exports from cockroachdb/errors for construction and wrapping. Use std "errors" for Is, As, Unwrap - they work with these types.
View Source
var ( // ErrNilInputParameter is returned when an input parameter is nil. ErrNilInputParameter = crdberrors.New("provided input parameter is nil") // ErrEmptyInputParameter is returned when an input parameter is empty. ErrEmptyInputParameter = crdberrors.New("provided input parameter is empty") // ErrNilInputProvided indicates nil input was provided in an unacceptable context. ErrNilInputProvided = crdberrors.New("nil input provided") // ErrInvalidIDProvided indicates a required ID was passed in empty. ErrInvalidIDProvided = crdberrors.New("required ID provided is empty") // ErrEmptyInputProvided indicates a required input was passed in empty. ErrEmptyInputProvided = crdberrors.New("input provided is empty") )
Common platform sentinels (wire-transmittable via cockroachdb/errors).
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.