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