namespace Ds.Module.ResultFilter { public class BusinessException : Exception { public DsResultCode ErrorCode { get; set; } public BusinessException(string message) : base(message) { ErrorCode = DsResultCode.Fail; } public BusinessException(DsResultCode errorCode, string message) : base(message) { this.ErrorCode = errorCode; } } }