Documentation
¶
Index ¶
- func Is(err, target error) bool
- func IsErrorDetail(err error) bool
- func IsNot(err, target error) bool
- func New(message ...any) error
- func NewByErr(err error) error
- func NewByErrSkipCaller(skipCaller int, err error) error
- func NewE(endpoint string, message ...any) error
- func NewEByErr(endpoint string, err error) error
- func NewEByErrSkipCaller(skipCaller int, err error, endpoint string) error
- func NewESkipCaller(skipCaller int, endpoint string, message ...any) error
- func NewSkipCaller(skipCaller int, message ...any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrorDetail ¶
IsErrorDetail check if error interface is errorDetail
func IsNot ¶
IsNot validate not equal errors, if errorDetail we only consider the errorDetail.Message field
func NewByErrSkipCaller ¶
NewByErrSkipCaller error detail by error with skipCaller, if error is nil return nil
func NewEByErrSkipCaller ¶
NewEByErrSkipCaller error detail by error with skipCaller, if error is nil return nil
func NewESkipCaller ¶
NewESkipCaller error detail with message values separate per space with skipCaller and endpoint
func NewSkipCaller ¶
NewSkipCaller error detail with message values separate per space and skipCaller
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.