Documentation
¶
Overview ¶
Package apperr defines transport-neutral application errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCStatus ¶
GRPCStatus maps an application error to a gRPC status error without exposing its internal cause.
func HTTPStatus ¶
HTTPStatus maps an application error code to an HTTP status.
func PublicMessage ¶
PublicMessage returns a safe client-facing message.
Types ¶
type Error ¶
Error contains a stable public code/message and an optional internal cause. Message is intended for clients; details from Cause must only be logged.
func (*Error) WithRetryable ¶
WithRetryable marks an error as safe for a retry policy.
Click to show internal directories.
Click to hide internal directories.