# Packages

Package sentry converts errors to Sentry events.

# Functions

Attributes returns the attributes of the errors, if they implement Attributes().
Cause returns the cause of the given error, if any.
Code gets the code of an error.
Define defines a registered error of type Unknown.
DefineAborted defines a registered error of type Aborted.
DefineAlreadyExists defines a registered error of type AlreadyExists.
DefineCanceled defines a registered error of type Canceled.
DefineCorruption is the same as DefineDataLoss.
DefineDataLoss defines a registered error of type DataLoss.
DefineDeadlineExceeded defines a registered error of type DeadlineExceeded.
DefineFailedPrecondition defines a registered error of type FailedPrecondition.
DefineInternal defines a registered error of type Internal.
DefineInvalidArgument defines a registered error of type InvalidArgument.
DefineNotFound defines a registered error of type NotFound.
DefinePermissionDenied defines a registered error of type PermissionDenied.
DefineResourceExhausted defines a registered error of type ResourceExhausted.
DefineUnauthenticated defines a registered error of type Unauthenticated.
DefineUnavailable defines a registered error of type Unavailable.
DefineUnimplemented defines a registered error of type Unimplemented.
Details gets the details of the error.
From returns an *Error if it can be derived from the given input.
FromGRPCStatus converts the gRPC status message into an Error.
FromHTTP reads an error from the HTTP response.
FromHTTPStatusCode maps an HTTP response code to an error.
GenerateCorrelationIDs configures whether random correlation IDs are generated for each error.
HasCode returns whether the given error has the given error code.
IsAborted returns whether the given error is of type Aborted.
IsAlreadyExists returns whether the given error is of type AlreadyExists.
IsCanceled returns whether the givenerror is context.Canceled or of type Canceled.
IsDataLoss returns whether the given error is of type DataLoss.
IsDeadlineExceeded returns whether the givenerror is context.DeadlineExceeded or of type DeadlineExceeded.
IsFailedPrecondition returns whether the given error is of type FailedPrecondition.
IsInternal returns whether the given error is of type Internal.
IsInvalidArgument returns whether the given error is of type InvalidArgument.
IsNotFound returns whether the given error is of type NotFound.
IsPermissionDenied returns whether the given error is of type PermissionDenied.
IsResourceExhausted returns whether the given error is of type ResourceExhausted.
IsUnauthenticated returns whether the given error is of type Unauthenticated.
IsUnavailable returns whether the given error is of type Unavailable.
IsUnimplemented returns whether the given error is of type Unimplemented.
IsUnknown returns whether the given error is of type Unknown.
New returns an error that formats as the given text.
PublicAttributes returns the public attributes of the errors, if they implement PublicAttributes().
Resemble returns true iff the given errors resemble, meaning that the Namespace and Name of the errors are equal.
RootCause walks up the "error chain" until it finds the root cause of an error.
Stack returns the entire error stack, including the given error.
StreamClientInterceptor converts gRPC errors to regular errors.
StreamServerInterceptor makes sure that returned TTN errors contain a CorrelationID.
ToHTTP writes the error to the HTTP response.
ToHTTPStatusCode maps an error to HTTP response codes.
UnaryClientInterceptor converts gRPC errors to regular errors.
UnaryServerInterceptor makes sure that returned TTN errors contain a CorrelationID.

# Variables

Alias standard library error functions.
ErrContextCanceled is the Definition of the standard context.Cancelled error.
ErrContextDeadlineExceeded is the definition of the standard context.DeadlineExceeded error.
ErrorDetailsFromProto ranges over the given protobuf-encoded messages to extract the ErrorDetails.
ErrorDetailsToProto converts the given ErrorDetails into a protobuf-encoded message.
Alias standard library error functions.
JSONCodec can be used to override the jsonpb codec.
Alias standard library error functions.

# Structs

Definition of a registered error.
Error is a rich error implementation.

# Interfaces

DefinitionInterface is the interface of an error definition.
ErrorDetails that can be carried over API.
Interface is the interface of an error.