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

Function getErrorCode

runtimevar/awssecretsmanager/awssecretsmanager.go:330–336  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

328}
329
330func getErrorCode(err error) string {
331 var ae smithy.APIError
332 if errors.As(err, &ae) {
333 return ae.ErrorCode()
334 }
335 return ""
336}
337
338// ErrorCode implements driver.ErrorCode.
339func (w *watcher) ErrorCode(err error) gcerrors.ErrorCode {

Callers 3

errorStateFunction · 0.70
equivalentErrorFunction · 0.70
ErrorCodeMethod · 0.70

Calls 2

AsMethod · 0.65
ErrorCodeMethod · 0.65

Tested by

no test coverage detected