ErrorCode implements driver.ErrorCode.
(err error)
| 305 | |
| 306 | // ErrorCode implements driver.ErrorCode. |
| 307 | func (w *watcher) ErrorCode(err error) gcerrors.ErrorCode { |
| 308 | code := getErrorCode(err) |
| 309 | if code == "ParameterNotFound" { |
| 310 | return gcerrors.NotFound |
| 311 | } |
| 312 | return gcerrors.Unknown |
| 313 | } |
nothing calls this directly
no test coverage detected