13 lines
276 B
C#
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;
|
|
}
|
|
}
|