Documentation

ConnectingToBrokerFailedException extends MqttClientException

Exception to be thrown if an MQTT client could not connect to the broker.

Table of Contents

EXCEPTION_CONNECTION_BROKER_UNAVAILABLE  = 04
EXCEPTION_CONNECTION_FAILED  = 01
EXCEPTION_CONNECTION_IDENTIFIER_REJECTED  = 03
EXCEPTION_CONNECTION_INVALID_CREDENTIALS  = 05
EXCEPTION_CONNECTION_PROTOCOL_VERSION  = 02
EXCEPTION_CONNECTION_SOCKET_ERROR  = 1000
EXCEPTION_CONNECTION_TLS_ERROR  = 2000
EXCEPTION_CONNECTION_UNAUTHORIZED  = 06
$connectionErrorCode  : string|null
$connectionErrorMessage  : string|null
__construct()  : mixed
ConnectingToBrokerFailedException constructor.
getConnectionErrorCode()  : string|null
Retrieves the connection error code.
getConnectionErrorMessage()  : string|null
Retrieves the connection error message.

Constants

Properties

Methods

__construct()

ConnectingToBrokerFailedException constructor.

public __construct(int $code, string $error[, string|null $innerCode = null ][, string|null $innerMessage = null ]) : mixed
Parameters
$code : int
$error : string
$innerCode : string|null = null
$innerMessage : string|null = null
Return values
mixed

getConnectionErrorMessage()

Retrieves the connection error message.

public getConnectionErrorMessage() : string|null
Return values
string|null

Search results