Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRecoverable ¶
IsRecoverable returns true if the given error has been marked as recoverable.
func NonRecoverable ¶
NonRecoverable annotates a given error as non-recoverable. It is equivalent to `RecoverableIf(err, false)`
func Recoverable ¶
Recoverable annotates a given error as recoverable. It is equivalent to `RecoverableIf(err, true)`
func RecoverableIf ¶
RecoverableIf conditionally annotates a given error as recoverable. If err is nil, the function returns nil. If the recoverability status of err is equal to cond, the function returns err itself. Otherwise a new error is returned that wraps err.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.