package
2.1.0-alpha.1+incompatible
Repository: https://github.com/gitql/vitess.git
Documentation: pkg.go.dev

# Functions

AggregateVtGateErrorCodes aggregates a list of errors into a single error code.
AggregateVtGateErrors aggregates several errors into a single one.
ConcatenateErrors aggregates an array of errors into a single error by string concatenation.
ErrorCodeToGRPCCode maps a vtrpcpb.ErrorCode to a gRPC codes.Code.
FromError returns a VitessError with the supplied error code by wrapping an existing error.
FromGRPCError returns a gRPC error as a VitessError, translating between error codes.
FromVtRPCError recovers a VitessError from a *vtrpcpb.RPCError (which is how VitessErrors are transmitted across proto3 RPC boundaries).
GRPCCodeToErrorCode maps a gRPC codes.Code to a vtrpcpb.ErrorCode.
NewVitessError returns a VitessError backed error with the given arguments.
RecoverVtErrorCode attempts to recover a vtrpcpb.ErrorCode from an error.
ToGRPCError returns an error as a gRPC error, with the appropriate error code.
VtRPCErrorFromVtError converts from a VtError to a vtrpcpb.RPCError.
WithPrefix allows a string to be prefixed to an error.
WithSuffix allows a string to be suffixed to an error.

# Constants

GRPCServerErrPrefix is the string we prefix gRPC server errors with.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.
A list of all vtrpcpb.ErrorCodes, ordered by priority.

# Structs

VitessError is the error type that we use internally for passing structured errors.

# Interfaces

VtError is implemented by any type that exposes a vtrpcpb.ErrorCode.