Documentation
¶
Overview ¶
Package errors defines transport-neutral Keelith application errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is an immutable transport-neutral application error.
Code and Reason form its stable machine identity. Message is human-facing and may vary without changing errors.Is matching.
type Frame ¶
Frame is the transport-neutral, serializable projection of an Error.
Cause is deliberately absent because implementation errors must not cross a transport boundary.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures a new Error or an immutable Clone.
func WithMessage ¶
WithMessage replaces the human-facing message.
func WithMetadata ¶
WithMetadata merges a defensive copy of metadata into the Error.
Click to show internal directories.
Click to hide internal directories.