isFatal
public function isFatal(): bool {}
Check if it is a fatal exception
$conf = SimpleKafkaClient\Configuration();
$conf->set('metadata.broker.list', 'kafka:9092');
$producer = new SimpleKafkaClient\Producer($conf);
try {
$producer->initTransactions(10000);
} catch (SimpleKafkaClient\KafkaErrorException $e) {
if ($e->isFatal()) {
// non-recoverable error
}
}