using System; namespace Common { public class BusinessException : Exception { public int ErrorCode { get; } public BusinessException() : base("业务处理失败") { } public BusinessException(string message) : base(message) { } public BusinessException(string message, int errorCode) : base(message) { ErrorCode = errorCode; } } }