CodeException.cs 604 B

123456789101112131415161718192021222324252627
  1. // <author></author>
  2. // <date></date>
  3. // <description></description>
  4. namespace ERP.Framework.Exceptions
  5. {
  6. /// <summary>
  7. /// 通用异常类
  8. /// </summary>
  9. public class CodeException : Exception
  10. {
  11. /// <summary>
  12. /// Code编号
  13. /// </summary>
  14. public int Code { get; set; }
  15. /// <summary>
  16. /// 构造函数
  17. /// </summary>
  18. /// <param name="code"></param>
  19. /// <param name="message"></param>
  20. public CodeException(int code, string? message) : base(message)
  21. {
  22. Code = code;
  23. }
  24. }
  25. }