errors

package
v6.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFunctionContext

func WithFunctionContext(err error, errMsg string, skip int) error

WithFunctionContext wraps an error with information about the function that generated the error. `skip` is the number of stack frames that need to be removed to reach the function that generated the error. If this function is called to wrap an error on the function that generated the error, then `skip` should be set to 1. Higher values of `skip` are necessary to create error wrapping functions that make use of this function.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL