Documentation ¶
Overview ¶
Package derrors defines internal error values to categorize the different types error semantics supported by x/vulndb.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetReportingClient ¶
func SetReportingClient(c *errorreporting.Client)
SetReportingClient sets an errorreporting client, for use by Report.
func Wrap ¶
Wrap adds context to the error and allows unwrapping the result to recover the original error.
Example:
defer derrors.Wrap(&err, "copy(%s, %s)", dst, src)
func WrapAndReport ¶
WrapAndReport calls Wrap followed by Report.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.