errutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errutil provides utilities for error creation and handling

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(prefixMessage string, err error, varargs ...any) error

Wrap wraps an error, adding a prefix to the message.

The message becomes "<prefixMessage>: <original message>" (the prefix itself does not need a colon at the end).

If prefixMessage contains format specifiers, varargs supplies the respective values.

Returns nil if err is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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