MCPcopy
hub / github.com/apache/devlake / newCombinedCrdbError

Function newCombinedCrdbError

backend/core/errors/crdb_impl.go:134–146  ·  view source on GitHub ↗
(t *Type, errs []error)

Source from the content-addressed store, hash-verified

132}
133
134func newCombinedCrdbError(t *Type, errs []error) Error {
135 msg := &errMessage{}
136 for _, e := range errs {
137 if le, ok := e.(*crdbErrorImpl); ok {
138 msg.appendMessage(le.msg.getMessage())
139 } else {
140 msg.appendMessage(e.Error())
141 }
142 }
143 opts := &Options{}
144 opts.stackOffset += 1
145 return newCrdbError(t, nil, msg, opts)
146}
147
148func newCrdbError(t *Type, err error, msg *errMessage, opts *Options) *crdbErrorImpl {
149 errType := t

Callers 1

CombineMethod · 0.85

Calls 4

appendMessageMethod · 0.95
newCrdbErrorFunction · 0.85
getMessageMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected