using System; using System.Runtime.Serialization; namespace APT.Infrastructure.Core { /// /// 领域异常,主要用在业务逻辑出错,需要终止当前业务时 /// [Serializable] public class DomainException: Exception { /// /// 领域异常,主要用在业务逻辑出错,需要终止当前业务时 /// public DomainException() { } /// /// 领域异常,主要用在业务逻辑出错,需要终止当前业务时 /// /// 错误信息 public DomainException(string message) : base(message) { } /// /// 领域异常,主要用在业务逻辑出错,需要终止当前业务时 /// /// 错误信息 /// 内部异常 public DomainException(string message, Exception inner) : base(message, inner) { } protected DomainException(SerializationInfo info, StreamingContext context) : base(info, context) { } } /// /// / /// public class RowVersionException : Exception { /// /// /// public RowVersionException() { } /// /// 领域异常,主要用在业务逻辑出错,需要终止当前业务时 /// /// 错误信息 public RowVersionException(string message) : base(message) { } /// /// 领域异常,主要用在业务逻辑出错,需要终止当前业务时 /// /// 错误信息 /// 内部异常 public RowVersionException(string message, Exception inner) : base(message, inner) { } } }