__construct
public function __construct(
string $message,
int $code,
string $error_string,
bool $isFatal,
bool $isRetriable,
bool $transactionRequiresAbort
) {}
Create new KafkaErrorException
, this can be helpful for transaction tests
throw new SimpleKafkaClient\KafkaErrorException(
'Some error message',
88,
'This is a detailed error string',
false,
true,
false
);