MCPcopy Index your code
hub / github.com/uber-go/dig / Error

Interface Error

error.go:40–50  ·  view source on GitHub ↗

Error is an interface implemented by all Dig errors. Use this interface, in conjunction with [RootCause], in order to determine if errors you encounter come from Dig, or if they come from provided constructors or invoked functions. See [RootCause] for more info.

Source from the content-addressed store, hash-verified

38// from provided constructors or invoked functions. See [RootCause]
39// for more info.
40type Error interface {
41 error
42
43 // Writes the message or context for this error in the chain.
44 //
45 // Note: the Error interface must always have a private function
46 // such as this one in order to maintain properly sealed.
47 //
48 // verb is either %v or %+v.
49 writeMessage(w io.Writer, v string)
50}
51
52// a digError is a dig.Error with additional functionality for
53// internal use - namely the ability to be formatted.

Callers 1

formatErrorFunction · 0.65

Implementers 10

nestedErrvisualize_int_test.go
errProvideerror.go
errCycleDetectedcycle_error.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…