package
1.37.0
Repository: https://github.com/encoredev/encore.dev.git
Documentation: pkg.go.dev

# Functions

B is a shorthand for creating a new Builder.
Code reports the error code from an error.
Convert converts an error to an *Error.
Details reports the error details included in the error.
HTTPError writes structured error information to w using JSON encoding.
Meta reports the metadata included in the error.
Wrap wraps the err, adding additional error information.
WrapCode is like Wrap but also sets the error code.

# Constants

Aborted indicates the operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.
AlreadyExists means an attempt to create an entity failed because one already exists.
Canceled indicates the operation was canceled (typically by the caller).
DataLoss indicates unrecoverable data loss or corruption.
DeadlineExceeded means operation expired before completion.
FailedPrecondition indicates operation was rejected because the system is not in a state required for the operation's execution.
Internal errors.
InvalidArgument indicates client specified an invalid argument.
NotFound means some requested entity (e.g., file or directory) was not found.
OK indicates the operation was successful.
OutOfRange means operation was attempted past the valid range.
PermissionDenied indicates the caller does not have permission to execute the specified operation.
ResourceExhausted indicates some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.
Unauthenticated indicates the request does not have valid authentication credentials for the operation.
Unavailable indicates the service is currently unavailable.
Unimplemented indicates operation is not implemented or not supported/enabled in this service.
Unknown error.

# Structs

A Builder allows for gradual construction of an error.
An Error is an error that provides structured information about the error.

# Interfaces

ErrDetails is a marker interface for telling Encore the type is used for reporting error details.

# Type aliases

ErrCode is an RPC error code.
Metadata represents structured key-value pairs, for attaching arbitrary metadata to errors.