package
1.5.1
Repository: https://github.com/microbus-io/fabric.git
Documentation: pkg.go.dev

# Functions

As delegates to the standard Go's errors.As function.
Convert converts an error to one that supports stack tracing.
Is delegates to the standard Go's errors.Is function.
Join aggregates multiple errors into one.
New creates a new error, capturing the current stack location.
Newc creates a new error with an HTTP status code, capturing the current stack location.
Newcf creates a new formatted error with an HTTP status code, capturing the current stack location.
Newf formats a new error, capturing the current stack location.
RuntimeTrace traces back by the amount of levels to retrieve the runtime information used for tracing.
StatusCode returns the HTTP status code associated with an error.
Trace appends the current stack location to the error's stack trace.
Tracec appends the current stack location to the error's stack trace and sets the status code.
TraceFull appends the full stack to the error's stack trace, starting at the indicated level.
TraceUp appends the level above the current stack location to the error's stack trace.
Unwrap delegates to the standard Go's errors.Wrap function.

# Structs

TracedError is a standard Go error augmented with a stack trace.