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

Struct errWithType

errortypes.go:61–64  ·  view source on GitHub ↗

errWithType is an Err bundled with its error type (a ConstError)

Source from the content-addressed store, hash-verified

59
60// errWithType is an Err bundled with its error type (a ConstError)
61type errWithType struct {
62 error
63 errType ConstError
64}
65
66// Is compares `target` with e's error type
67func (e *errWithType) Is(target error) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected