MCPcopy
hub / github.com/redpanda-data/console / Error

Method Error

backend/pkg/console/kafka_error.go:25–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func (e *KafkaError) Error() string {
26 return fmt.Sprintf("%s: %s", e.Message, e.Description)
27}
28
29func newKafkaError(errCode int16) *KafkaError {
30 typedError := kerr.TypedErrorForCode(errCode)

Callers 15

randCryptoIntsFunction · 0.45
ListMessagesMethod · 0.45
fetchMessagesMethod · 0.45
logDirsByTopicMethod · 0.45
ListOffsetsMethod · 0.45
GetAllBrokerConfigsMethod · 0.45
GetBrokerConfigMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestListMessagesMethod · 0.36
MatchesMethod · 0.36
MatchesMethod · 0.36
TestWithLevelFunction · 0.36
TestPrometheusHandlerFunction · 0.36