locationError is the internal implementation of the Locationer interface.
| 42 | |
| 43 | // locationError is the internal implementation of the Locationer interface. |
| 44 | type locationError struct { |
| 45 | error |
| 46 | |
| 47 | // function is the package path-qualified function name where the |
| 48 | // error was created. |
| 49 | function string |
| 50 | |
| 51 | // line is the line number the error was created on inside of function |
| 52 | line int |
| 53 | } |
| 54 | |
| 55 | // newLocationError constructs a new Locationer error from the supplied error |
| 56 | // with the location set to callDepth in the stack. If a nill error is provided |
nothing calls this directly
no outgoing calls
no test coverage detected