errors

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(err, target error) bool

Is validate equal errors, if errorDetail we only consider the errorDetail.Message field

func IsErrorDetail

func IsErrorDetail(err error) bool

IsErrorDetail check if error interface is errorDetail

func IsNot

func IsNot(err, target error) bool

IsNot validate not equal errors, if errorDetail we only consider the errorDetail.Message field

func New

func New(message ...any) error

New error detail with message values separate per space

func NewByErr

func NewByErr(err error) error

NewByErr error detail by error, if error is nil return nil

func NewByErrSkipCaller

func NewByErrSkipCaller(skipCaller int, err error) error

NewByErrSkipCaller error detail by error with skipCaller, if error is nil return nil

func NewE

func NewE(endpoint string, message ...any) error

NewE error detail with endpoint and message

func NewEByErr added in v1.0.4

func NewEByErr(endpoint string, err error) error

NewEByErr error detail with endpoint and message

func NewEByErrSkipCaller

func NewEByErrSkipCaller(skipCaller int, err error, endpoint string) error

NewEByErrSkipCaller error detail by error with skipCaller, if error is nil return nil

func NewESkipCaller

func NewESkipCaller(skipCaller int, endpoint string, message ...any) error

NewESkipCaller error detail with message values separate per space with skipCaller and endpoint

func NewSkipCaller

func NewSkipCaller(skipCaller int, message ...any) error

NewSkipCaller error detail with message values separate per space and skipCaller

Types

This section is empty.

Jump to

Keyboard shortcuts

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