Pop3Exception.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. namespace Ant.Service.Utilities
  3. {
  4. /// <summary>
  5. /// This class represents a Pop3 Exception.
  6. /// </summary>
  7. [global::System.Serializable]
  8. public class Pop3Exception : Exception
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="Pop3Exception"/> class.
  12. /// </summary>
  13. public Pop3Exception() { }
  14. /// <summary>
  15. /// Initializes a new instance of the <see cref="Pop3Exception"/> class.
  16. /// </summary>
  17. /// <param name="message">The message.</param>
  18. public Pop3Exception(string message) : base(message) { }
  19. /// <summary>
  20. /// Initializes a new instance of the <see cref="Pop3Exception"/> class.
  21. /// </summary>
  22. /// <param name="message">The message.</param>
  23. /// <param name="inner">The inner.</param>
  24. public Pop3Exception(string message, Exception inner) : base(message, inner) { }
  25. /// <summary>
  26. /// Initializes a new instance of the <see cref="Pop3Exception"/> class.
  27. /// </summary>
  28. /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param>
  29. /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param>
  30. /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception>
  31. /// <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception>
  32. protected Pop3Exception(
  33. System.Runtime.Serialization.SerializationInfo info,
  34. System.Runtime.Serialization.StreamingContext context)
  35. : base(info, context) { }
  36. }
  37. }