RdKafka\Message::errstr

(PECL rdkafka >= 0.9.1)

RdKafka\Message::errstrGet the error as string

Description

public RdKafka\Message::errstr ( void ) : string

This a convenience method returning the error as a string.

Parameters

This function has no parameters.

Return Values

The error as a string

Examples

Example #1 RdKafka\Message::errstr() example

<?php
if ($message->err) {
    echo 
$message->errstr(), "\n";
}
?>