fix
This commit is contained in:
19
Application/Exceptions/BusinessException.cs
Normal file
19
Application/Exceptions/BusinessException.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace Application.Exceptions;
|
||||
|
||||
/// <summary>
|
||||
/// 业务逻辑异常(对应HTTP 500 Internal Server Error)
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 用于业务操作失败、数据状态不一致等场景
|
||||
/// </remarks>
|
||||
public class BusinessException : ApplicationException
|
||||
{
|
||||
public BusinessException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
|
||||
public BusinessException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user