Is compares `target` with e's error type
(target error)
| 65 | |
| 66 | // Is compares `target` with e's error type |
| 67 | func (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 |
| 75 | func (e *errWithType) Unwrap() error { |
no outgoing calls
no test coverage detected