MCPcopy Index your code
hub / github.com/go-errors/errors / StackFrames

Method StackFrames

error.go:186–196  ·  view source on GitHub ↗

StackFrames returns an array of frames containing information about the stack.

()

Source from the content-addressed store, hash-verified

184// StackFrames returns an array of frames containing information about the
185// stack.
186func (err *Error) StackFrames() []StackFrame {
187 if err.frames == nil {
188 err.frames = make([]StackFrame, len(err.stack))
189
190 for i, pc := range err.stack {
191 err.frames[i] = NewStackFrame(pc)
192 }
193 }
194
195 return err.frames
196}
197
198// TypeName returns the type this error. e.g. *errors.stringError.
199func (err *Error) TypeName() string {

Callers 4

StackMethod · 0.95
TestParsePanicFunction · 0.80
TestWrapPrefixErrorFunction · 0.80
ExampleError_StackFramesFunction · 0.80

Calls 1

NewStackFrameFunction · 0.85

Tested by 3

TestParsePanicFunction · 0.64
TestWrapPrefixErrorFunction · 0.64
ExampleError_StackFramesFunction · 0.64