errors

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCanNotNil   = New("shouldn't be nil")  //不能为空
	ErrMustPointer = New("Must be a pointer") //必须是指针
)

Functions

func Cause

func Cause(err error) error

func Error added in v0.0.8

func Error(i interface{}) error

func Errorf

func Errorf(format string, args ...interface{}) error

func Errors

func Errors(errs ...error) error

func New

func New(message string) error

func Panic added in v0.0.6

func Panic(err error) *SpringUtils.PanicCond

Panic 抛出一个异常值

func UnknownError

func UnknownError(r interface{}) error

func WithMessage

func WithMessage(err error, message string) error

func WithMessagef

func WithMessagef(err error, format string, args ...interface{}) error

func WithStack

func WithStack(err error) error

func Wrap

func Wrap(err error, message string) error

func Wrapf

func Wrapf(err error, format string, args ...interface{}) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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