error

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMeta

func AddMeta(er error, key string, value any) error

func NewError

func NewError(operation string, er error) error

Types

type Error

type Error struct {
	Op   string         `json:"op,omitempty"`
	Er   error          `json:"cause"`
	Meta map[string]any `json:"meta,omitempty"`
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

Jump to

Keyboard shortcuts

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