package
4.43.4
Repository: https://github.com/fleetdm/fleet.git
Documentation: pkg.go.dev

# Functions

Aggregate retrieves all errors in the store and returns an aggregated, json-formatted summary containing: - The number of occurrences of each error - A reduced stack trace used for debugging the error.
Cause returns the root error in err's chain.
Errorf creates a new error with the given message.
FleetCause is similar to Cause, but returns the root-most FleetError in the chain.
Handle handles err by passing it to the registered error handler, deduplicating it and storing it for a configured duration.
MarshalJSON provides a JSON representation of a whole error chain.
New creates a new error with the given message.
NewContext returns a context derived from ctx that contains the provided error handler.
NewWithData creates a new error and attaches additional metadata to it.
Retrieve retrieves an error from the registered error handler.
Unwrap is a wrapper of built-in errors.Unwrap.
Wrap creates a new error with the given message, wrapping another error.
Wrapf creates a new error with the given message, wrapping another error.
WrapWithData creates a new error with the given message, wrapping another error and attaching the data provided to it.

# Structs

FleetError is the error implementation used by this package.
MockHandler is a mock implementation of an error handler that allows to test ctxerr features that retrieve and store information in Redis without a server running.
StoredError represents the structure we use to de-serialize errors and counts stored in Redis.