Documentation
¶
Index ¶
- func As(err error, target interface{}) bool
- func Cause(err error) error
- func CauseWithNil(err error) error
- func Errorf(format string, args ...interface{}) error
- func Errors(errs ...error) error
- func ExecuteWithErrorArrayP2[IN, P1, P2 any](caller WithErrorArrayP2[IN, P1, P2], p1 P1, p2 P2, elements ...IN) error
- func ExtractCause[T error](err error) (T, bool)
- func GRPCCode(err error) codes.Code
- func GRPCStatus(err error) (*status.Status, bool)
- func Is(err, target error) bool
- func IsConnectionRefused(err error) bool
- func IsConnectionReset(err error) bool
- func IsContextCanceled(err error) bool
- func IsContextCanceledOrExpired(err error) bool
- func IsContextDeadlineExpired(err error) bool
- func IsEOF(err error) bool
- func IsGRPCCode(err error, codes ...codes.Code) bool
- func IsNotImplementedError(err error) bool
- func IsReconcile(err error) bool
- func IsTemporary(err error) bool
- func IsTimeout(err error) bool
- func New(message string) error
- func NotImplementedError() error
- func Reconcile() error
- func Section(cause error, format string, args ...interface{}) error
- func WithMessage(err error, message string) error
- func WithMessagef(err error, format string, args ...interface{}) error
- func WithStack(err error) error
- func Wrap(err error, message string) error
- func Wrapf(err error, format string, args ...interface{}) error
- type Array
- type Causer
- type WithErrorArrayP2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CauseWithNil ¶
CauseWithNil returns Cause of an error. If error returned by Cause is same (no Causer interface implemented), function will return nil instead
func ExecuteWithErrorArrayP2 ¶
func ExecuteWithErrorArrayP2[IN, P1, P2 any](caller WithErrorArrayP2[IN, P1, P2], p1 P1, p2 P2, elements ...IN) error
func ExtractCause ¶
func IsConnectionRefused ¶
IsConnectionRefused returns true if the given error is caused by an "connection refused" error.
func IsConnectionReset ¶
IsConnectionReset returns true if the given error is caused by an "connection reset by peer" error.
func IsContextCanceled ¶
IsContextCanceled returns true if the given error is caused by a context cancelation.
func IsContextCanceledOrExpired ¶
IsContextCanceledOrExpired returns true if the given error is caused by a context cancelation or deadline expiration.
func IsContextDeadlineExpired ¶
IsContextDeadlineExpired returns true if the given error is caused by a context deadline expiration.
func IsNotImplementedError ¶
func IsReconcile ¶
func IsTemporary ¶
IsTemporary returns true if the given error is caused by a temporary error.
func NotImplementedError ¶
func NotImplementedError() error