package errors

import "github.com/containernetworking/plugins/pkg/errors"

Index

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.

Source Files

errors.go

Version
v1.7.1 (latest)
Published
Apr 25, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
14 hours ago

Tools for package owners.