multierror

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

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

Error contains multiple errors mapped by unique suffix.

func New

func New() *Error

New returns a new multi-error which contains a map of errors whose key is the unique DID suffix.

func (*Error) Error

func (e *Error) Error() string

Error implements the error interface.

func (*Error) Errors

func (e *Error) Errors() map[string]error

Errors returns the map of suffix errors.

func (*Error) Set

func (e *Error) Set(suffix string, err error)

Set sets the error for the given suffix.

Jump to

Keyboard shortcuts

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