mutlierror

package
v2.14.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(errs ...error) error

Types

type MultiError

type MultiError struct {
	// Errors is a list of errors grouped into this MultiError
	Errors []error `json:"errors"`
}

MultiError is an error containing several errors Unlike errors.Join() it produces an error with exported fields and can be included in structured logging

func (MultiError) Error

func (m MultiError) Error() string

Jump to

Keyboard shortcuts

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