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

Function wrapError

pubsub/pubsub.go:818–826  ·  view source on GitHub ↗
(ec errorCoder, err error)

Source from the content-addressed store, hash-verified

816}
817
818func wrapError(ec errorCoder, err error) error {
819 if err == nil {
820 return nil
821 }
822 if gcerr.DoNotWrap(err) {
823 return err
824 }
825 return gcerr.New(ec.ErrorCode(err), err, 2, "pubsub")
826}
827
828// TopicURLOpener represents types than can open Topics based on a URL.
829// The opener must not modify the URL argument. OpenTopicURL must be safe to

Callers 5

ShutdownMethod · 0.70
newSendBatcherFunction · 0.70
getNextBatchMethod · 0.70
ShutdownMethod · 0.70
newAckBatcherFunction · 0.70

Calls 3

DoNotWrapFunction · 0.92
NewFunction · 0.92
ErrorCodeMethod · 0.65

Tested by

no test coverage detected