verror

package
v1.4.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CastStrErr      = errors.New("convert str failed")
	CastStrSliceErr = errors.New("convert str slice failed")
	CastBoolErr     = errors.New("convert bool failed")
	CastIntErr      = errors.New("convert int failed")
	CastInt32Err    = errors.New("convert int32 failed")
	CastInt64Err    = errors.New("convert int64 failed")
	CastFloat64Err  = errors.New("convert float64 failed")
)
View Source
var (
	UnsupportedMethod = errors.New("unsupported method")
)

Functions

This section is empty.

Types

type MultiErr

type MultiErr struct {
	Errs []error
}

func NewMultiErr

func NewMultiErr() *MultiErr

func (*MultiErr) AddErr

func (m *MultiErr) AddErr(args ...error)

AddErr 添加错误.

func (*MultiErr) AsStdErr

func (m *MultiErr) AsStdErr() error

AsStdErr 转换为标准库错误.

func (*MultiErr) Error

func (m *MultiErr) Error() string

func (*MultiErr) IsEmpty

func (m *MultiErr) IsEmpty() bool

IsEmpty 是否为空.

func (*MultiErr) IsNotEmpty

func (m *MultiErr) IsNotEmpty() bool

IsNotEmpty 是否为空.

Jump to

Keyboard shortcuts

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