Class MqttProduceException
The exception that is thrown when the result of a publish to the MQTT broker doesn't indicate success.
Inheritance
Implements
Inherited Members
Namespace: Silverback.Messaging.Broker.Mqtt
Assembly: Silverback.Integration.MQTT.dll
Syntax
[Serializable]
public class MqttProduceException : ProduceException, ISerializable
Constructors
| Improve this doc View sourceMqttProduceException()
Initializes a new instance of the MqttProduceException class.
Declaration
public MqttProduceException()
MqttProduceException(SerializationInfo, StreamingContext)
Initializes a new instance of the MqttProduceException class with the serialized data.
Declaration
protected MqttProduceException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
MqttProduceException(String)
Initializes a new instance of the MqttProduceException class with the specified message.
Declaration
public MqttProduceException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The exception message. |
MqttProduceException(String, MqttClientPublishResult)
Initializes a new instance of the MqttProduceException class with the specified message.
Declaration
public MqttProduceException(string message, MqttClientPublishResult result)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The exception message. |
MQTTnet.Client.MqttClientPublishResult | result | The MQTTnet.Client.MqttClientPublishResult. |
MqttProduceException(String, Exception)
Initializes a new instance of the MqttProduceException class with the specified message and inner exception.
Declaration
public MqttProduceException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The exception message. |
System.Exception | innerException | The inner exception. |
Properties
| Improve this doc View sourceResult
Gets the MQTTnet.Client.MqttClientPublishResult of the failed publish operation.
Declaration
public MqttClientPublishResult Result { get; }
Property Value
Type | Description |
---|---|
MQTTnet.Client.MqttClientPublishResult |