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

Struct locationError

error.go:44–53  ·  view source on GitHub ↗

locationError is the internal implementation of the Locationer interface.

Source from the content-addressed store, hash-verified

42
43// locationError is the internal implementation of the Locationer interface.
44type 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected