Added custom exception for gracefully closed exceptions.

This commit is contained in:
Christian Kratky
2018-06-11 00:26:38 +02:00
parent 20779dfece
commit 26eed30dbf
6 changed files with 20 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ namespace MQTTnet.Internal
{
public static void ThrowGracefulSocketClose()
{
throw new MqttCommunicationException("Connection gracefully closed from the remote party.");
throw new MqttCommunicationClosedGracefullyException();
}
}
}