自定义 过分请求异常

This commit is contained in:
GYJ
2024-12-28 17:39:19 +08:00
parent 0f12ed5161
commit 3b5c8f0af4
4 changed files with 30 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
package com.sqx.modules.callback;
import com.sqx.common.exception.CzgException;
import com.sqx.modules.callback.service.UniAdCallbackRecordService;
import lombok.extern.slf4j.Slf4j;
@@ -31,4 +32,9 @@ public class UniCallBackController {
log.info("接收到uni-ad广告完播回调回调信息: {}", dto);
return ResponseEntity.ok(uniCallBackService.adCallBack(dto));
}
@GetMapping("/testException")
public String testException() throws CzgException {
throw new CzgException("测试异常");
}
}