MCPcopy Create free account
hub / github.com/chain/txvm / Stack

Function Stack

errors/stack.go:10–13  ·  view source on GitHub ↗

Stack returns the stack trace of an error. If the error has no stack information, it returns an empty stack trace.

(err error)

Source from the content-addressed store, hash-verified

8// If the error has no stack information, it
9// returns an empty stack trace.
10func Stack(err error) *runtime.Frames {
11 wErr, _ := err.(wrapperError)
12 return runtime.CallersFrames(wErr.stack)
13}
14
15// getStack is an allocating wrapper around runtime.Callers.
16func getStack(skip int, max int) []uintptr {

Callers 4

PrintkvFunction · 0.92
ErrorFunction · 0.92
FatalErrFunction · 0.92
TestWrapFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestWrapFunction · 0.68