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

Function getErrorCode

runtimevar/awsparamstore/awsparamstore.go:298–304  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

296}
297
298func getErrorCode(err error) string {
299 var ae smithy.APIError
300 if errors.As(err, &ae) {
301 return ae.ErrorCode()
302 }
303 return ""
304}
305
306// ErrorCode implements driver.ErrorCode.
307func (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