Documentation ¶
Index ¶
Constants ¶
View Source
const AssertionErrorHint = `You have encountered an unexpected error.`
AssertionErrorHint is the hint emitted upon assertion failures.
Variables ¶
This section is empty.
Functions ¶
func HasAssertionFailure ¶
HasAssertionFailure returns true if the error or any of its causes is an assertion failure annotation.
func IsAssertionFailure ¶
IsAssertionFailure returns true if the error (not its causes) is an assertion failure annotation. Consider using markers.If or HasAssertionFailure to test both the error and its causes.
func WithAssertionFailure ¶
WithAssertionFailure decorates the error with an assertion failure marker. This is not intended to be used directly (see AssertionFailed() for further decoration).
Detail is shown: - when formatting with `%+v`. - in Sentry reports.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.