errors

package
v0.0.0-...-5b4d345 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPanic

func FromPanic(rec interface{}) error

FromPanic extracts the err from the result of a recover() call.

func ReportToSentry

func ReportToSentry(err error, r *http.Request)

ReportToSentry reports err to the configured sentry server. Optionally, specifying a non-nil `r` will include information in the report about the current http request.

func Stack

func Stack(err error) string

Stack returns the stack, as a string, if one can be extracted from `err`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL