errorx

package
v0.0.0-...-115e584 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(fns ...func() error) error

Chain runs funs one by one until an error occurred.

Types

type BatchError

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

func (*BatchError) Add

func (be *BatchError) Add(err error)

Add 添加错误

func (*BatchError) Err

func (be *BatchError) Err() error

Err 返回一个包含所有错误的错误

func (*BatchError) NotNil

func (be *BatchError) NotNil() bool

NotNil 验证是否包含任意错误

Jump to

Keyboard shortcuts

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