fault

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fault

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

Fault will handle multi error in tasks.

func New

func New() *Fault

New will create a new Fault.

func (*Fault) Append

func (f *Fault) Append(err ...error)

Append will append errors in fault.

func (*Fault) Error

func (f *Fault) Error() string

Error will print all errors in fault.

func (*Fault) HasError

func (f *Fault) HasError() bool

HasError checks whether this fault has error or not.

func (*Fault) Unwrap

func (f *Fault) Unwrap() error

Unwrap implements unwarp interface.

Jump to

Keyboard shortcuts

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