package
0.0.0-20250107173743-d0474a929c0e
Repository: https://github.com/samsarahq/go.git
Documentation: pkg.go.dev

# README

oops

Package oops adds detailed stacktraces to your Go errors.

See godoc.org/github.com/samsarahq/go/oops.

# Packages

No description provided by the author

# Functions

Deprecated: use [errors.As] which is part of the standard library.
Deprecated: Use [errors.Is] or [errors.As] which are part of the standard library.
CollectMetadata finds the first oopsError in err's chain and collects all metadata from oops errors in the chain.
Errorf creates a new error with a reason and a stacktrace.
Frames extracts all frames from an oops error.
GetPrefixesToShortCircuit returns the current set of file prefixes to short-circuit.
Deprecated: use [errors.Is] which is part of the standard library.
MainStackToString writes the frames of the main goroutine to a string.
Recover recovers from a panic in a defer.
SetPrefixesToShortCircuit sets `filePrefixesToShortCircuit` to `prefixes`.
SkipFrames skips numFrames from the stack trace and returns a new copy of the error.
Deprecated: use [errors.Unwrap] which is part of the standard library.
Wrapf annotates an error with a reason and a stacktrace.
WrapfWithMetadata is like Wrapf but also sets the metadata given in the oops error you can call CollectMetadata to retrieve the metadata later.

# Structs

Frame represents a Frame in an oops callstack.

# Interfaces

A Wrapper provides context around another error.