Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error string
Error is a reusable sentinel error that supports WithMessage while remaining compatible with errors.Is against the bare sentinel.
func (Error) WithMessage ¶
func (e Error) WithMessage(msg string) WithMessageError
WithMessage attaches detail text (typically cause.Error()). An empty message returns the sentinel itself.
func (Error) WithMessageFmt ¶
func (e Error) WithMessageFmt(format string, args ...any) WithMessageError
WithMessageFmt attaches detail text (typically cause.Error()). An empty message returns the sentinel itself.
type WithMessageError ¶
type WithMessageError interface {
error
WithMessage(msg string) WithMessageError
WithMessageFmt(format string, args ...any) WithMessageError
}
Click to show internal directories.
Click to hide internal directories.