errhandler

package
v2.12.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package errhandler handles errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(action middleware.Action) middleware.Action

Handle handles an action error, ignoring and logging pipe skipped errors.

Types

type Memo

type Memo struct {
	// contains filtered or unexported fields
}

Memo is a handler that memorizes errors, so you can grab them all in the end instead of returning each of them.

func (*Memo) Error

func (m *Memo) Error() error

Error returns the underlying error.

func (*Memo) Memorize

func (m *Memo) Memorize(err error)

func (*Memo) Wrap

func (m *Memo) Wrap(action middleware.Action) middleware.Action

Wrap the given action, memorizing its errors. The resulting action will always return a nil error.

Jump to

Keyboard shortcuts

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