(t *Type, errs []error)
| 132 | } |
| 133 | |
| 134 | func 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 | |
| 148 | func newCrdbError(t *Type, err error, msg *errMessage, opts *Options) *crdbErrorImpl { |
| 149 | errType := t |
no test coverage detected