MqttCommunicationException.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. Copyright (c) 2013, 2014 Paolo Patierno
  3. All rights reserved. This program and the accompanying materials
  4. are made available under the terms of the Eclipse Public License v1.0
  5. and Eclipse Distribution License v1.0 which accompany this distribution.
  6. The Eclipse Public License is available at
  7. http://www.eclipse.org/legal/epl-v10.html
  8. and the Eclipse Distribution License is available at
  9. http://www.eclipse.org/org/documents/edl-v10.php.
  10. Contributors:
  11. Paolo Patierno - initial API and implementation and/or initial documentation
  12. */
  13. using System;
  14. namespace uPLibrary.Networking.M2Mqtt.Exceptions
  15. {
  16. /// <summary>
  17. /// Exception due to error communication with broker on socket
  18. /// </summary>
  19. public class MqttCommunicationException : Exception
  20. {
  21. /// <summary>
  22. /// Default constructor
  23. /// </summary>
  24. public MqttCommunicationException()
  25. {
  26. }
  27. /// <summary>
  28. /// Constructor
  29. /// </summary>
  30. /// <param name="e">Inner Exception</param>
  31. public MqttCommunicationException(Exception e)
  32. : base(String.Empty, e)
  33. {
  34. }
  35. }
  36. }