getErrorString
public function getErrorString(): string {}
Get error description for this exception
$conf = SimpleKafkaClient\Configuration();
$conf->set('metadata.broker.list', 'kafka:9092');
$producer = new SimpleKafkaClient\Producer($conf);
try {
$producer->initTransactions(10000);
} catch (SimpleKafkaClient\KafkaErrorException $e) {
echo $e->getErrorString();
}