panicutils

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PanicIfError

func PanicIfError(err error)

PanicIfError will panic if the provided error is not nil

func PanicToError

func PanicToError(recovered interface{}) error

PanicToError converts a panic to an error

func RecoverToErrorAndHandle

func RecoverToErrorAndHandle(handler func(err error))

RecoverToErrorAndHandle recovers a panic, converts it to an error and invokes the handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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