Documentation
¶
Overview ¶
Package errors provides utilities for annotating and combining errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Aliases to the standard errors package.
Functions ¶
func Combine ¶
Combine merges multiple errors into a single error, flattening any nested multi-errors.
func Errors ¶
Errors returns the individual errors from a combined error, or a single-element slice otherwise.
func WithCause ¶
WithCause annotates a symptom error with a cause.
Both errors can be discovered by the Is and As methods.
func WithDetails ¶
WithDetails annotates an error with additional detail strings for diagnostics.
func WriteDetails ¶
WriteDetails writes the detail annotations of err and its chain to w.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.