Files
f9-web-ai-test/backend/F9WebAiTest.Application/Common/ServiceException.cs
T
2026-10-08 10:43:59 +08:00

13 lines
276 B
C#

namespace F9WebAiTest.Application.Common;
/// <summary>业务异常</summary>
public class ServiceException : Exception
{
public int Code { get; set; } = 400;
public ServiceException(string message, int code = 400) : base(message)
{
Code = code;
}
}