MCPcopy
hub / github.com/IBM/sarama / AddError

Method AddError

offset_commit_response.go:15–25  ·  view source on GitHub ↗
(topic string, partition int32, kerror KError)

Source from the content-addressed store, hash-verified

13}
14
15func (r *OffsetCommitResponse) AddError(topic string, partition int32, kerror KError) {
16 if r.Errors == nil {
17 r.Errors = make(map[string]map[int32]KError)
18 }
19 partitions := r.Errors[topic]
20 if partitions == nil {
21 partitions = make(map[int32]KError)
22 r.Errors[topic] = partitions
23 }
24 partitions[partition] = kerror
25}
26
27func (r *OffsetCommitResponse) encode(pe packetEncoder) error {
28 if r.Version >= 3 {

Callers 3

ForMethod · 0.95

Calls

no outgoing calls