Documentation
¶
Overview ¶
Package eerror stands for Encore Error and is used to provide a little more information about the underlying error's metadata.
It also provides helper methods for working with zerolog's context
Index ¶
- func LogWithMeta(evt *zerolog.Event, err error) *zerolog.Event
- func MetaFrom(err error) map[string]any
- func New(module string, msg string, meta map[string]any) error
- func WithMeta(err error, meta map[string]any) error
- func Wrap(cause error, module string, msg string, meta map[string]any) error
- type Error
- type StackFrame
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogWithMeta ¶
LogWithMeta merges in the metadata from the errors into the log context
func MetaFrom ¶
MetaFrom will return the merged metadata from any eerror.Error objects in the errors given. It will unwrap errors as it descends