using Prism.Mvvm; using System; namespace SKMC.Api.Common.Exceptions { /// /// 异常处理配置模型 /// public class ExceptionConfig : BindableBase { public ExceptionConfig() { } public ExceptionConfig(ExceptionConfig exceptionConfiger) { if (exceptionConfiger != null) { Id = exceptionConfiger.Id; Code = exceptionConfiger.Code; Type = exceptionConfiger.Type; Level = exceptionConfiger.Level; Group = exceptionConfiger.Group; Name = exceptionConfiger.Name; Note = exceptionConfiger.Note; Tips = exceptionConfiger.Tips; CanRetry = exceptionConfiger.CanRetry; CanIgnore = exceptionConfiger.CanIgnore; CanAbort = exceptionConfiger.CanAbort; RetryMsg = exceptionConfiger.RetryMsg; RetryMsgSuccess = exceptionConfiger.RetryMsgSuccess; RetryMsgFailed = exceptionConfiger.RetryMsgFailed; } } protected long _id; public long Id { get { return _id; } set { _id = value; } } protected string _code; public string Code { get { return _code; } set { _code = value; } } protected int _type; public int Type { get { return _type; } set { _type = value; } } protected string _group; public string Group { get { return _group; } set { _group = value; } } protected string _name; public string Name { get { return _name; } set { _name = value; } } protected string _note; public string Note { get { return _note; } set { _note = value; } } protected string _tips; public string Tips { get { return _tips; } set { _tips = value; } } protected short _level; public short Level { get { return _level; } set { _level = value; } } protected byte _canRetry; public byte CanRetry { get { return _canRetry; } set { _canRetry = value; } } protected byte _canIgnore; public byte CanIgnore { get { return _canIgnore; } set { _canIgnore = value; } } protected byte _canAbort; public byte CanAbort { get { return _canAbort; } set { _canAbort = value; } } protected string _operation; public string Operation { get { return _operation; } set { _operation = value; RaisePropertyChanged(); } } protected string _retryMsg; public string RetryMsg { get { return _retryMsg; } set { _retryMsg = value; RaisePropertyChanged(); } } protected string _retryMsgSuccess; public string RetryMsgSuccess { get { return _retryMsgSuccess; } set { _retryMsgSuccess = value; RaisePropertyChanged(); } } protected string _retryMsgFailed; public string RetryMsgFailed { get { return _retryMsgFailed; } set { _retryMsgFailed = value; RaisePropertyChanged(); } } } }