errors

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 5

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.

Jump to

Keyboard shortcuts

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