multierr

package
v0.9.3 Latest Latest
Warning

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

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

Documentation

Overview

Package multierr contains simple implementation of multiple error handling. Inspired by https://github.com/hashicorp/go-multierror.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiError

type MultiError []error

MultiError is container for multiple errors.

func (MultiError) Error

func (m MultiError) Error() string

Error returns an error message.

func (MultiError) ErrorOrNil

func (m MultiError) ErrorOrNil() error

ErrorOrNil returns nil in case there are no errors inside.

func (MultiError) Is

func (m MultiError) Is(target error) bool

Is validates whenever any of included errors Is target error.

Jump to

Keyboard shortcuts

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