mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 00:15:15 +08:00
17 lines
456 B
C#
17 lines
456 B
C#
using MQTTnet.Core.Exceptions;
|
|
using MQTTnet.Core.Protocol;
|
|
|
|
namespace MQTTnet.Core.Adapter
|
|
{
|
|
public class MqttConnectingFailedException : MqttCommunicationException
|
|
{
|
|
public MqttConnectingFailedException(MqttConnectReturnCode returnCode)
|
|
: base($"Connecting with MQTT server failed ({returnCode}).")
|
|
{
|
|
ReturnCode = returnCode;
|
|
}
|
|
|
|
public MqttConnectReturnCode ReturnCode { get; }
|
|
}
|
|
}
|