errors

package
v0.0.95 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Catch

func Catch()

Catch is used for logging panic call stack. Catch should be called with defer.

func CatchWithLogger

func CatchWithLogger(logger logging.Logger)

CatchWithLogger is a panic handler expected to be deferred.

func Initialize

func Initialize(l logging.Logger)

Initialize initializes error reporter.

func RecoverErrorPanic

func RecoverErrorPanic(pErr *error, pRet interface{})

RecoverErrorPanic recovers an panic if needed. If panic recovered, it set the panic content to pErr and set pRet (return value) to default value. Useful when using assertions in types.

Types

This section is empty.

Jump to

Keyboard shortcuts

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