ExceptionConfig.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. using Prism.Mvvm;
  2. using System;
  3. namespace SKMC.Api.Common.Exceptions
  4. {
  5. /// <summary>
  6. /// 异常处理配置模型
  7. /// </summary>
  8. public class ExceptionConfig : BindableBase
  9. {
  10. public ExceptionConfig() { }
  11. public ExceptionConfig(ExceptionConfig exceptionConfiger)
  12. {
  13. if (exceptionConfiger != null)
  14. {
  15. Id = exceptionConfiger.Id;
  16. Code = exceptionConfiger.Code;
  17. Type = exceptionConfiger.Type;
  18. Level = exceptionConfiger.Level;
  19. Group = exceptionConfiger.Group;
  20. Name = exceptionConfiger.Name;
  21. Note = exceptionConfiger.Note;
  22. Tips = exceptionConfiger.Tips;
  23. CanRetry = exceptionConfiger.CanRetry;
  24. CanIgnore = exceptionConfiger.CanIgnore;
  25. CanAbort = exceptionConfiger.CanAbort;
  26. RetryMsg = exceptionConfiger.RetryMsg;
  27. RetryMsgSuccess = exceptionConfiger.RetryMsgSuccess;
  28. RetryMsgFailed = exceptionConfiger.RetryMsgFailed;
  29. }
  30. }
  31. protected long _id;
  32. public long Id
  33. {
  34. get { return _id; }
  35. set { _id = value; }
  36. }
  37. protected string _code;
  38. public string Code
  39. {
  40. get { return _code; }
  41. set { _code = value; }
  42. }
  43. protected int _type;
  44. public int Type
  45. {
  46. get { return _type; }
  47. set { _type = value; }
  48. }
  49. protected string _group;
  50. public string Group
  51. {
  52. get { return _group; }
  53. set { _group = value; }
  54. }
  55. protected string _name;
  56. public string Name
  57. {
  58. get { return _name; }
  59. set { _name = value; }
  60. }
  61. protected string _note;
  62. public string Note
  63. {
  64. get { return _note; }
  65. set { _note = value; }
  66. }
  67. protected string _tips;
  68. public string Tips
  69. {
  70. get { return _tips; }
  71. set { _tips = value; }
  72. }
  73. protected short _level;
  74. public short Level
  75. {
  76. get { return _level; }
  77. set { _level = value; }
  78. }
  79. protected byte _canRetry;
  80. public byte CanRetry
  81. {
  82. get { return _canRetry; }
  83. set { _canRetry = value; }
  84. }
  85. protected byte _canIgnore;
  86. public byte CanIgnore
  87. {
  88. get { return _canIgnore; }
  89. set { _canIgnore = value; }
  90. }
  91. protected byte _canAbort;
  92. public byte CanAbort
  93. {
  94. get { return _canAbort; }
  95. set { _canAbort = value; }
  96. }
  97. protected string _operation;
  98. public string Operation
  99. {
  100. get { return _operation; }
  101. set { _operation = value; RaisePropertyChanged(); }
  102. }
  103. protected string _retryMsg;
  104. public string RetryMsg
  105. {
  106. get { return _retryMsg; }
  107. set { _retryMsg = value; RaisePropertyChanged(); }
  108. }
  109. protected string _retryMsgSuccess;
  110. public string RetryMsgSuccess
  111. {
  112. get { return _retryMsgSuccess; }
  113. set { _retryMsgSuccess = value; RaisePropertyChanged(); }
  114. }
  115. protected string _retryMsgFailed;
  116. public string RetryMsgFailed
  117. {
  118. get { return _retryMsgFailed; }
  119. set { _retryMsgFailed = value; RaisePropertyChanged(); }
  120. }
  121. }
  122. }