Files
BuYuHouDuan/Infrastructure/Common/BusinessException.cs
T

19 lines
411 B
C#
Raw Normal View History

2026-10-12 16:22:04 +08:00
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;
}
}
}