package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev

# Functions

Aggregate aggregates several errors into a single one.
Code returns the error code if it's a vtError.
CodeToLegacyErrorCode maps a vtrpcpb.Code to a vtrpcpb.LegacyErrorCode.
Equals returns true iff the error message and the code returned by Code() is equal.
Errorf returns a new error built using Printf style arguments.
FromGRPC returns a gRPC error as a vtError, translating between error codes.
FromVTRPC recovers a vtError from a *vtrpcpb.RPCError (which is how vtError is transmitted across proto3 RPC boundaries).
LegacyErrorCodeToCode maps a vtrpcpb.LegacyErrorCode to a gRPC vtrpcpb.Code.
New creates a new error using the code and input string.
Print is meant to print the vtError object in test failures.
ToGRPC returns an error as a gRPC error, with the appropriate error code.
ToVTRPC converts from vtError to a vtrpcpb.RPCError.
Wrap wraps the given error, returning a new error with the given message as a prefix but with the same error code (if err was a vterror) and message of the passed error.
Wrapf wraps the given error, returning a new error with the given format string as a prefix but with the same error code (if err was a vterror) and message of the passed error.

# Constants

A list of all vtrpcpb.Code, ordered by priority.
A list of all vtrpcpb.Code, ordered by priority.
A list of all vtrpcpb.Code, ordered by priority.
A list of all vtrpcpb.Code, ordered by priority.
A list of all vtrpcpb.Code, ordered by priority.
A list of all vtrpcpb.Code, ordered by priority.
Serious errors.
A list of all vtrpcpb.Code, ordered by priority.
A list of all vtrpcpb.Code, ordered by priority.
Informational errors.
A list of all vtrpcpb.Code, ordered by priority.
A list of all vtrpcpb.Code, ordered by priority.
Permanent errors.
A list of all vtrpcpb.Code, ordered by priority.
Potentially retryable errors.
A list of all vtrpcpb.Code, ordered by priority.
A list of all vtrpcpb.Code, ordered by priority.