package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
APIInternalError should be used to wrap server-side errors during API requests.
APIV2InternalError should be used to wrap server-side errors during API requests for V2 (non-GRPC) endpoints.
ServerError logs the provided error and returns an error that should be returned by the RPC endpoint method.
ServerErrorf logs the provided error and returns an error that should be returned by he RPC endpoint method.
# Variables
ErrAPIInternalError is the gRPC status error returned when an internal error was encountered.
ErrAPIInternalErrorString is the string printed out in the UI when an internal error was encountered.