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

Method Is

errortypes.go:67–72  ·  view source on GitHub ↗

Is compares `target` with e's error type

(target error)

Source from the content-addressed store, hash-verified

65
66// Is compares `target` with e's error type
67func (e *errWithType) Is(target error) bool {
68 if &e.errType == nil {
69 return false
70 }
71 return target == e.errType
72}
73
74// Unwrap an errWithType gives the underlying Err
75func (e *errWithType) Unwrap() error {

Callers 1

makeWrappedConstErrorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected