MCPcopy Create free account
hub / github.com/google/go-cloud / ErrorCode

Method ErrorCode

runtimevar/awsparamstore/awsparamstore.go:307–313  ·  view source on GitHub ↗

ErrorCode implements driver.ErrorCode.

(err error)

Source from the content-addressed store, hash-verified

305
306// ErrorCode implements driver.ErrorCode.
307func (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}

Callers

nothing calls this directly

Calls 1

getErrorCodeFunction · 0.70

Tested by

no test coverage detected