errors

package
v0.73.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errors provides useful error handling implementations.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aggregate

func Aggregate(ee ...error) error

Aggregate errors into one error. If the provided errors contain a nil it will be skipped.

Example
err1 := errors.New("error 1")
err2 := errors.New("error 2")
err3 := fmt.Errorf("error inner: %w", errors.New("error 3"))

err := Aggregate(err1, nil, err2, nil, err3)

fmt.Println(err)
Output:

error 1
error 2
error inner: error 3

Types

This section is empty.

Jump to

Keyboard shortcuts

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