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

Function wrapError

secrets/secrets.go:159–167  ·  view source on GitHub ↗
(k *Keeper, err error)

Source from the content-addressed store, hash-verified

157}
158
159func wrapError(k *Keeper, err error) error {
160 if err == nil {
161 return nil
162 }
163 if gcerr.DoNotWrap(err) {
164 return err
165 }
166 return gcerr.New(k.k.ErrorCode(err), err, 2, "secrets")
167}
168
169// KeeperURLOpener represents types that can open Keepers based on a URL.
170// The opener must not modify the URL argument. OpenKeeperURL must be safe to

Callers 3

EncryptMethod · 0.70
DecryptMethod · 0.70
CloseMethod · 0.70

Calls 3

DoNotWrapFunction · 0.92
NewFunction · 0.92
ErrorCodeMethod · 0.65

Tested by

no test coverage detected