package
0.0.14-alpha04
Repository: https://github.com/stackql/stackql-parser.git
Documentation: pkg.go.dev

# Functions

Aggregate aggregates several errors into a single one.
Cause will return the immediate cause, if possible.
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() are equal.
Errorf formats according to a format specifier and returns the string as a value that satisfies error.
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 returns an error with the supplied message.
NewWithoutCode returns an error when no applicable error code is available It will record the stack trace when creating the error.
Print is meant to print the vtError object in test failures.
RootCause returns the underlying cause of the error, if possible.
ToGRPC returns an error as a gRPC error, with the appropriate error code.
ToVTRPC converts from vtError to a vtrpcpb.RPCError.
Wrap returns an error annotating err with a stack trace at the point Wrap is called, and the supplied message.
Wrapf returns an error annotating err with a stack trace at the point Wrapf is call, and the format specifier.

# 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.

# Variables

LogErrStacks controls whether or not printing errors includes the embedded stack trace in the output.

# Type aliases

Frame represents a program counter inside a stack frame.
StackTrace is stack of Frames from innermost (newest) to outermost (oldest).