Documentation
¶
Overview ¶
Copied (and modified) from: github.com/pkg/errors@v0.9.1/stack.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶ added in v0.4.0
type Error struct {
// contains filtered or unexported fields
}
Error keeps the context of the error to print later.
Error must be kept comparable.
func Catch ¶ added in v0.2.0
Catch potential panics that occur in a function call. Panics should never occur, therefore stack traces print regardless of build mode (release or debug). nolint:nonamedreturns // reason: need named return to alter the Error return in the defer
Click to show internal directories.
Click to hide internal directories.