errhandler

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

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 added in v1.14.1

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 added in v1.14.1

func (m *Memo) Error() error

Error returns the underlying error.

func (*Memo) Wrap added in v1.14.1

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