⬆️ 升级 orion-kit 版本.

This commit is contained in:
lijiahang
2024-04-07 18:59:43 +08:00
parent d1a73dc7d8
commit c674860885
7 changed files with 14 additions and 76 deletions

View File

@@ -74,7 +74,7 @@ public enum ErrorCode implements CodeInfo {
DECRYPT_ERROR(908, "数据解密异常"),
EXPRESSION_ERROR(909, "表达式错误"),
PARSE_ERROR(909, "解析失败"),
TASK_EXECUTE_ERROR(910, "任务执行异常"),

View File

@@ -243,11 +243,10 @@ public class GlobalExceptionHandler {
return ErrorCode.INTERNAL_SERVER_ERROR.wrapper();
}
// TODO kit
@ExceptionHandler(value = ParseCronException.class)
public HttpWrapper<?> parseCronExceptionHandler(ParseCronException ex) {
log.error("parseCronExceptionHandler", ex);
return ErrorCode.EXPRESSION_ERROR.wrapper();
@ExceptionHandler(value = ParseRuntimeException.class)
public HttpWrapper<?> parseRuntimeExceptionHandler(ParseRuntimeException ex) {
log.error("parseRuntimeExceptionHandler", ex);
return ErrorCode.PARSE_ERROR.wrapper();
}
@ExceptionHandler(value = CodeArgumentException.class)