package errors
import "github.com/containernetworking/plugins/pkg/errors"
Index ¶
- func Annotate(err error, message string) error
- func Annotatef(err error, message string, args ...interface{}) error
Functions ¶
func Annotate ¶
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 ¶
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.
Source Files ¶
- Version
- v1.7.1 (latest)
- Published
- Apr 25, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 14 hours ago –
Tools for package owners.