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

Method ErrorStack

error.go:180–182  ·  view source on GitHub ↗

ErrorStack returns a string that contains both the error message and the callstack.

()

Source from the content-addressed store, hash-verified

178// ErrorStack returns a string that contains both the
179// error message and the callstack.
180func (err *Error) ErrorStack() string {
181 return err.TypeName() + " " + err.Error() + "\n" + string(err.Stack())
182}
183
184// StackFrames returns an array of frames containing information about the
185// stack.

Callers 2

TestNewFunction · 0.80
ExampleError_ErrorStackFunction · 0.80

Calls 3

TypeNameMethod · 0.95
ErrorMethod · 0.95
StackMethod · 0.95

Tested by 2

TestNewFunction · 0.64
ExampleError_ErrorStackFunction · 0.64