Documentation ¶
Index ¶
- func Append(err error, other error, block func(error) error) error
- func Cast[T any](err error) (T, bool)
- func Cause(cause error, message ...any) error
- func Errors(errors ...error) error
- func Expand(err error) []error
- func ExpandAll(errs []error) []error
- func Extend(cause error, message ...any) error
- func IsCanceled(err error) bool
- func IsClosed(err error) bool
- func IsClosedOrCanceled(err error) bool
- func IsMulti(err error, targetList ...error) bool
- func IsTimeout(err error) bool
- func New(message ...any) error
- func Unwrap(err error) error
- type Handler
- type HasInnerError
- type MultiError
- type TimeoutError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCanceled ¶
func IsClosedOrCanceled ¶
Types ¶
type HasInnerError ¶
type HasInnerError interface {
Unwrap() error
}
type MultiError ¶
type MultiError interface {
Unwrap() []error
}
type TimeoutError ¶
type TimeoutError interface {
Timeout() bool
}
Click to show internal directories.
Click to hide internal directories.