first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user