MCPcopy Create free account
hub / github.com/sourcegraph/conc / String

Method String

panics/panics.go:77–79  ·  view source on GitHub ↗

String renders a human-readable formatting of the panic.

()

Source from the content-addressed store, hash-verified

75
76// String renders a human-readable formatting of the panic.
77func (p *Recovered) String() string {
78 return fmt.Sprintf("panic: %v\nstacktrace:\n%s\n", p.Value, p.Stack)
79}
80
81// AsError casts the panic into an error implementation. The implementation
82// is unwrappable with the cause of the panic, if the panic was provided one.

Callers 3

TestCatcherFunction · 0.80
ErrorMethod · 0.80
TestTryFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestCatcherFunction · 0.64
TestTryFunction · 0.64