Class MqttConnectException
The exception that is thrown when the MQTT client connection fails.
Implements
Inherited Members
Namespace: Silverback.Messaging.Broker.Mqtt
Assembly: Silverback.Integration.MQTT.dll
Syntax
[ExcludeFromCodeCoverage]
public class MqttConnectException : SilverbackException, ISerializable
Constructors
MqttConnectException()
Initializes a new instance of the MqttConnectException class.
Declaration
public MqttConnectException()
MqttConnectException(string)
Initializes a new instance of the MqttConnectException class with the specified message.
Declaration
public MqttConnectException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The exception message. |
MqttConnectException(string, MqttClientPublishResult)
Initializes a new instance of the MqttConnectException class with the specified message.
Declaration
public MqttConnectException(string message, MqttClientPublishResult result)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The exception message. |
| MqttClientPublishResult | result | The MQTTnet.MqttClientPublishResult. |
MqttConnectException(string, Exception)
Initializes a new instance of the MqttConnectException class with the specified message and inner exception.
Declaration
public MqttConnectException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The exception message. |
| Exception | innerException | The inner exception. |
Properties
Result
Gets the MQTTnet.MqttClientPublishResult of the failed publish operation.
Declaration
public MqttClientPublishResult? Result { get; }
Property Value
| Type | Description |
|---|---|
| MqttClientPublishResult |