PageRenderTime 26ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/MSNPSHARP_DEV/MSNPSharp/MSNPSharpException.cs

http://msnp-sharp.googlecode.com/
C# | 84 lines | 27 code | 8 blank | 49 comment | 0 complexity | 80e1e71be8068e4751d2860c2dce2135 MD5 | raw file
  1. #region
  2. /*
  3. Copyright (c) 2002-2012, Bas Geertsema, Xih Solutions
  4. (http://www.xihsolutions.net), Thiago.Sayao, Pang Wu, Ethem Evlice, Andy Phan, Chang Liu.
  5. All rights reserved. http://code.google.com/p/msnp-sharp/
  6. Redistribution and use in source and binary forms, with or without
  7. modification, are permitted provided that the following conditions are met:
  8. * Redistributions of source code must retain the above copyright notice,
  9. this list of conditions and the following disclaimer.
  10. * Redistributions in binary form must reproduce the above copyright notice,
  11. this list of conditions and the following disclaimer in the documentation
  12. and/or other materials provided with the distribution.
  13. * Neither the names of Bas Geertsema or Xih Solutions nor the names of its
  14. contributors may be used to endorse or promote products derived from this
  15. software without specific prior written permission.
  16. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
  17. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  18. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  19. ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  20. LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  21. CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  22. SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  23. INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  24. CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  25. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  26. THE POSSIBILITY OF SUCH DAMAGE.
  27. */
  28. #endregion
  29. using System;
  30. using System.Runtime.Serialization;
  31. namespace MSNPSharp
  32. {
  33. using MSNPSharp.Core;
  34. /// <summary>
  35. /// The base class for all MSNPSharp related exceptions
  36. /// </summary>
  37. [Serializable()]
  38. public class MSNPSharpException : ApplicationException
  39. {
  40. /// <summary>
  41. /// Basic constructor.
  42. /// </summary>
  43. public MSNPSharpException()
  44. {
  45. }
  46. /// <summary>
  47. /// Specifies a general exception.
  48. /// </summary>
  49. /// <param name="message">A textual presentation of the exception message</param>
  50. public MSNPSharpException(string message)
  51. : base(message)
  52. {
  53. }
  54. /// <summary>
  55. /// Specifies a general exception but which originates from another exception.
  56. /// </summary>
  57. /// <param name="message">A textual presentation of the exception message</param>
  58. /// <param name="innerException">The (inner)exception which caused this exception. For example a SocketException.</param>
  59. public MSNPSharpException(string message, Exception innerException)
  60. : base(message, innerException)
  61. {
  62. }
  63. /// <summary>
  64. /// Serialization constructor.
  65. /// </summary>
  66. /// <param name="info"></param>
  67. /// <param name="context"></param>
  68. protected MSNPSharpException(SerializationInfo info, StreamingContext context)
  69. : base(info, context)
  70. {
  71. }
  72. }
  73. };