errors

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllDetails

func AllDetails(err error) map[string]interface{}

func CauseChain added in v0.20.0

func CauseChain(err error) string

CauseChain renders the full unwrapped error chain as "outer: inner: root". Wrappers like WrapWithDetails report the same message at multiple chain levels; those consecutive duplicates are collapsed so the output stays readable. Returns "" for a nil error.

func LogError

func LogError(err error) *zerolog.Event

func WithDetails

func WithDetails(message string, details ...interface{}) error

func WrapWithDetails

func WrapWithDetails(err error, message string, details ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL