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

Method addError

metadata.go:17–19  ·  view source on GitHub ↗

addError adds an error for a topic to the set. The wrap preserves the underlying error for errors.Is/As.

(topic string, err error)

Source from the content-addressed store, hash-verified

15// addError adds an error for a topic to the set. The wrap preserves
16// the underlying error for errors.Is/As.
17func (e refreshError) addError(topic string, err error) {
18 e[topic] = fmt.Errorf("%s: %w", topic, err)
19}
20
21func (e refreshError) Error() string {
22 err := errors.Join(e.errors()...)

Callers 2

updateMetadataMethod · 0.80

Calls 1

ErrorfMethod · 0.65