errors

package
v0.0.0-...-e707d1a Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 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