multierror

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 2 Imported by: 1

README

Build Status

multierror

a simple package for handling horizontal errors as opposed to veritical (fmt.Errorf %w error wrapping)

Documentation

Overview

Package multierror contains a Multierror for combining multiple errors and compiling with errors.Is

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(oldErr error, newErr error) error

Append newErr to oldErr error returning combined error, appending newErr to old if old is a MultiError or creating a new MultiError if not. does not append nil errors, see source

Types

type MultiError

type MultiError []error

MultiError is a collection of errors combined and treated as one

func (MultiError) Error

func (me MultiError) Error() string

Error returns combined error.Error output by \n

func (MultiError) Is

func (me MultiError) Is(target error) bool

Is a target error, complies with errors.Is

Jump to

Keyboard shortcuts

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