package
Version:
v0.8.18
Opens a new window with list of versions in this module.
Published: Aug 7, 2026
License: MPL-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package hint provides an error wrapping mechanism that allows attaching actionable hints
and contextual messages to errors.
Wrap wraps up an error with hints, to help display hints to a user about what
might fix the problem.
Wrapf wraps an error with a single hint with formatting arguments.
Error is an error that includes hints to be displayed after the error.
FromError attempts to parse the given error's string to an *hint.Error.
Error implements [error] interface.
Hint returns all hints in a single string separated by a new line.
Message returns the error's message without the hints.
Unwrap returns the wrapped error so errors.Is and errors.As can traverse
the hint wrapper.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.