ConnectingToBrokerFailedException
extends MqttClientException
in package
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
EXCEPTION_CONNECTION_BROKER_UNAVAILABLE
public
mixed
EXCEPTION_CONNECTION_BROKER_UNAVAILABLE
= 04
EXCEPTION_CONNECTION_FAILED
public
mixed
EXCEPTION_CONNECTION_FAILED
= 01
EXCEPTION_CONNECTION_IDENTIFIER_REJECTED
public
mixed
EXCEPTION_CONNECTION_IDENTIFIER_REJECTED
= 03
EXCEPTION_CONNECTION_INVALID_CREDENTIALS
public
mixed
EXCEPTION_CONNECTION_INVALID_CREDENTIALS
= 05
EXCEPTION_CONNECTION_PROTOCOL_VERSION
public
mixed
EXCEPTION_CONNECTION_PROTOCOL_VERSION
= 02
EXCEPTION_CONNECTION_SOCKET_ERROR
public
mixed
EXCEPTION_CONNECTION_SOCKET_ERROR
= 1000
EXCEPTION_CONNECTION_TLS_ERROR
public
mixed
EXCEPTION_CONNECTION_TLS_ERROR
= 2000
EXCEPTION_CONNECTION_UNAUTHORIZED
public
mixed
EXCEPTION_CONNECTION_UNAUTHORIZED
= 06
Properties
$connectionErrorCode
private
string|null
$connectionErrorCode
$connectionErrorMessage
private
string|null
$connectionErrorMessage
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 —getConnectionErrorCode()
Retrieves the connection error code.
public
getConnectionErrorCode() : string|null
Return values
string|null —getConnectionErrorMessage()
Retrieves the connection error message.
public
getConnectionErrorMessage() : string|null