errorhandling

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accumulator

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

Accumulator allows storing a series of errors and then concatenating their string representations into one big error.

func (*Accumulator) AccumulateError

func (ea *Accumulator) AccumulateError(err error)

AccumulateError stores an error to be reported later.

func (*Accumulator) Error

func (ea *Accumulator) Error() error

Error concatenates the string representations of all stored errors and returns it as a single error.

Jump to

Keyboard shortcuts

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