Categorygithub.com/Invicton-Labs/go-stackerr
modulepackage
0.1.0
Repository: https://github.com/invicton-labs/go-stackerr.git
Documentation: pkg.go.dev

# README

go-stackerr

A Go error library that provides comprehensive support for stack tracing.

# Functions

No description provided by the author
FromRecover converts a panic recover() result into a stackerr.Error, using the stack at the point where the panic was created.s.
NewStack creates a new Stack from a slice of frames.
NewStacks creates a new Stacks from a slice of Stack.
NewStacksFromFrames creates a new Stacks from a slice of slices of frames.
ParseStacks parses a stack string into a Stacks struct.
StackTrace gets the current stack.
StackTraceWithSkippedFrames gets the current stack, with a certain number of frames skipped.
Wrap wraps an error into a stackerr.Error, using the stack trace at the point where this function was called.
WrapWithFrameSkips wraps an error into a stackerr.Error, ignoring the most recent `skippedFrames` frames of the stack.
WrapWithFrameSkipsWithoutExtraStack wraps an error into a stackerr.Error, ignoring the most recent `skippedFrames` frames of the stack.
WrapWithoutExtraStack wraps an error into a stackerr.Error.
WrapWithStack wraps an error into a stackerr.Error, using the given stack as the stackerr.Error's stack trace.

# Interfaces

No description provided by the author
A special interface that can be used to add key-value pairs in-place, without cloning the existing error.

# Type aliases

No description provided by the author
No description provided by the author