MailExceptions.cs 678 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Bowin.Common.Mail
  6. {
  7. public class SendMailException : Exception
  8. {
  9. public SendMailException(string message)
  10. : base(message)
  11. {
  12. }
  13. public SendMailException(string message, Exception ex)
  14. : base(message, ex)
  15. {
  16. }
  17. }
  18. public class ReceiveMailException : Exception
  19. {
  20. public ReceiveMailException(string message)
  21. : base(message)
  22. {
  23. }
  24. public ReceiveMailException(string message, Exception ex)
  25. : base(message, ex)
  26. {
  27. }
  28. }
  29. }