Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPermanent = errors.New("permanent error. cannot be retried")
Functions ¶
func CreatePermanentError ¶
CreatePermanentError will return a permanent error with the string contents of the passed in error
func EmitPermanentError ¶
func EmitPermanentError(err error, handler EmitHandler) error
EmitPermanentError will execute the handler if the error is Permanent and return nil. Otherwise it will return the passed in error.
Types ¶
type EmitHandler ¶
type EmitHandler func(err error)
Click to show internal directories.
Click to hide internal directories.