errorx

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapturePanic

func CapturePanic(exception *merry.Error, message string)

CapturePanic will capture a panic, create a merry.Error and set exception to the error. The error has message prepended to the value originall passed to `panic`.

Use it like this:

defer errorx.CapturePanic(&err, "panic while doing a thing")

func IsPanic

func IsPanic(err merry.Error) bool

IsPanic returns true if the given error was created by CapturePanic

Types

This section is empty.

Jump to

Keyboard shortcuts

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