MCPcopy Create free account
hub / github.com/juju/errors / Location

Method Location

error.go:127–129  ·  view source on GitHub ↗

Location returns the package path-qualified function name and line of where the error was most recently created or annotated.

()

Source from the content-addressed store, hash-verified

125// Location returns the package path-qualified function name and line of where
126// the error was most recently created or annotated.
127func (e *Err) Location() (function string, line int) {
128 return e.function, e.line
129}
130
131// Underlying returns the previous error in the error stack, if any. A client
132// should not ever really call this method. It is used to build the error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected