recoverfn

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Raw

type Raw struct {
	RecoverV  any
	RecoverPC uintptr
	PCs       []uintptr
}

func Run

func Run(fn func()) (Raw, bool)

Run runs fn and return Raw{}, true for no panic If panic is recoverable raw stacktrace and panic value is returned If panic is not recoverable we just panic again

func (Raw) Frames

func (r Raw) Frames() []runtime.Frame

type RecoverableErrorer added in v0.5.0

type RecoverableErrorer interface {
	IsRecoverableError() bool
}

Jump to

Keyboard shortcuts

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