diff options
Diffstat (limited to 'common/herrors/errors.go')
-rw-r--r-- | common/herrors/errors.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/herrors/errors.go b/common/herrors/errors.go index 5fae6fcae..fded30b1a 100644 --- a/common/herrors/errors.go +++ b/common/herrors/errors.go @@ -57,6 +57,11 @@ func PrintStackTrace(w io.Writer) { fmt.Fprintf(w, "%s", buf) } +// ErrorSender is a, typically, non-blocking error handler. +type ErrorSender interface { + SendError(err error) +} + // Recover is a helper function that can be used to capture panics. // Put this at the top of a method/function that crashes in a template: // defer herrors.Recover() |