errorx

package
v0.0.0-...-c436d6b Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapIfError

func WrapIfError(msg string, err *error)

WrapIfError wraps the provided error with an additional message if it is not nil. This is intended to be used inside a defer to wrap the returned error

func WrapWithFuncNameIfError

func WrapWithFuncNameIfError(err *error)

WrapIfError wraps the provided error with the name of the caller if the error is not nil. This is intended to be used inside a defer to wrap the returned error

Types

This section is empty.

Jump to

Keyboard shortcuts

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