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.
| 38 | // from provided constructors or invoked functions. See [RootCause] |
| 39 | // for more info. |
| 40 | type 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…