GameException.cs 798 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. namespace Model
  3. {
  4. [Serializable]
  5. public class GameException: Exception
  6. {
  7. public GameException(string message): base(message)
  8. {
  9. }
  10. public GameException(string message, Exception e): base(message, e)
  11. {
  12. }
  13. }
  14. /// <summary>
  15. /// 输入异常,比如没有输入密码账号
  16. /// </summary>
  17. [Serializable]
  18. public class InputErrorException: Exception
  19. {
  20. public InputErrorException(string message): base(message)
  21. {
  22. }
  23. public InputErrorException(string message, Exception e): base(message, e)
  24. {
  25. }
  26. }
  27. /// <summary>
  28. /// 配置异常
  29. /// </summary>
  30. [Serializable]
  31. public class ConfigException: Exception
  32. {
  33. public ConfigException(string message): base(message)
  34. {
  35. }
  36. public ConfigException(string message, Exception e): base(message, e)
  37. {
  38. }
  39. }
  40. }