verror

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnsupportedMethod = errors.New("unsupported method")
)

Functions

func CastBoolError

func CastBoolError(value interface{}) error

func CastDoubleError

func CastDoubleError(value interface{}) error

func CastIntegerError

func CastIntegerError(value interface{}) error

func CastStringError added in v1.1.9

func CastStringError(value interface{}) error

Types

type CastError

type CastError struct {
	Value interface{}
	Desc  string
}

func NewCastError

func NewCastError(value interface{}, desc string) *CastError

func (CastError) Error

func (c CastError) Error() string

type MultiErr added in v1.2.2

type MultiErr struct {
	Errs []error
}

func NewMultiErr added in v1.2.3

func NewMultiErr() *MultiErr

func (*MultiErr) AddErr added in v1.2.2

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

AddErr 添加错误

func (*MultiErr) AsStdErr added in v1.2.2

func (m *MultiErr) AsStdErr() error

AsStdErr 转换为标准库错误

func (*MultiErr) Error added in v1.2.2

func (m *MultiErr) Error() string

func (*MultiErr) IsEmpty added in v1.2.2

func (m *MultiErr) IsEmpty() bool

IsEmpty 是否为空

func (*MultiErr) IsNotEmpty added in v1.2.2

func (m *MultiErr) IsNotEmpty() bool

IsNotEmpty 是否为空

Jump to

Keyboard shortcuts

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