__construct

Description

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

Example

throw new SimpleKafkaClient\KafkaErrorException(
    'Some error message',
    88,
    'This is a detailed error string',
    false,
    true,
    false
);