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

Function newKafkaErrorWithDynamicMessage

backend/pkg/console/errors.go:39–45  ·  view source on GitHub ↗
(code int16, msg *string)

Source from the content-addressed store, hash-verified

37}
38
39func newKafkaErrorWithDynamicMessage(code int16, msg *string) error {
40 kafkaErr := kerr.TypedErrorForCode(code)
41 if kafkaErr == nil {
42 return nil
43 }
44 return &KerrWithDynamicMessageError{Static: kafkaErr, DynamicServerMessage: msg}
45}

Callers 7

EditTopicConfigMethod · 0.85
GetBrokerConfigMethod · 0.85
ListAllACLsMethod · 0.85
CreateTopicMethod · 0.85
DeleteTopicMethod · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…