errors

package
Version: v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Annotate

func Annotate(err error, message string) error

Annotate is used to add extra context to an existing error. The return will be a new error which carries error message from both context message and existing error.

func Annotatef

func Annotatef(err error, message string, args ...interface{}) error

Annotatef is used to add extra context with args to an existing error. The return will be a new error which carries error message from both context message and existing error.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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