Documentation ¶
Overview ¶
Package sentinel provides some utilities for easier use of sentinel errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMessage ¶
WithMessage annotates the original err with a sentinel error and a message.
func WithMessagef ¶
WithMessagef annotates the original err with a sentinel error and a format specifier.
Types ¶
type ErrorWrapper ¶
type ErrorWrapper interface {
OriginalError() error
}
ErrorWrapper wraps the original error.
Click to show internal directories.
Click to hide internal directories.