Documentation ¶
Index ¶
- func AddContextDataToError(ctx context.Context, err error) error
- func AddToContext(ctx context.Context, key, value string) context.Context
- func As(err error, target any) bool
- func Cause(err error) error
- func DataFromContext(ctx context.Context) map[string]string
- func DataFromError(err error) map[string]string
- func Errorf(ctx context.Context, format string, args ...interface{}) error
- func Is(err, target error) bool
- func Join(errs ...error) error
- func New(ctx context.Context, message string) error
- func Unwrap(err error) error
- func Wrap(ctx context.Context, err error, message string) error
- func Wrapf(ctx context.Context, err error, format string, args ...interface{}) error
- type DataError
- type ErrorList
- type HasCause
- type HasData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddContextDataToError ¶ added in v1.1.0
func AddToContext ¶ added in v1.1.0
func DataFromError ¶ added in v1.1.0
Types ¶
type ErrorList ¶ added in v1.1.0
func NewErrorList ¶ added in v1.1.0
func NewErrorList() ErrorList
Click to show internal directories.
Click to hide internal directories.