metaerr

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetadata

func GetMetadata(err error) []any

GetMetadata returns metadata from the error chain if there is no metadata in the chain, it will return an empty slice.

func WithMetadata

func WithMetadata(err error, pairs ...any) error

WithMetadata creates a new error with metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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