errors

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

errors provides a couple of custom useful error handling functions parts of the code are taken from github.com/pkg/errors the pkg/errors repo is archived and deprecated so I didn't want to import it

Index

Constants

This section is empty.

Variables

View Source
var New = errors.New

Functions

func Wrp

func Wrp(err error, message string) error

Wpr annotates err with a new message. If err is nil, WithMessage returns nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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