⬆️ 升级 orion-kit 版本.
This commit is contained in:
@@ -74,7 +74,7 @@ public enum ErrorCode implements CodeInfo {
|
||||
|
||||
DECRYPT_ERROR(908, "数据解密异常"),
|
||||
|
||||
EXPRESSION_ERROR(909, "表达式错误"),
|
||||
PARSE_ERROR(909, "解析失败"),
|
||||
|
||||
TASK_EXECUTE_ERROR(910, "任务执行异常"),
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user