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

Method Error

error.go:150–158  ·  view source on GitHub ↗

Error returns the underlying error's message.

()

Source from the content-addressed store, hash-verified

148
149// Error returns the underlying error's message.
150func (err *Error) Error() string {
151
152 msg := err.Err.Error()
153 if err.prefix != "" {
154 msg = fmt.Sprintf("%s: %s", err.prefix, msg)
155 }
156
157 return msg
158}
159
160// Stack returns the callstack formatted the same way that go does
161// in runtime/debug.Stack()

Callers 2

ErrorStackMethod · 0.95
TestParsePanicFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestParsePanicFunction · 0.36