|
@@ -1,6 +1,7 @@
|
|
|
package com.elab.spring.intercept;
|
|
|
|
|
|
import com.elab.core.aop.annotations.ExceptionHandle;
|
|
|
+import com.elab.core.exception.CheckException;
|
|
|
import com.elab.core.utils.ObjectUtils;
|
|
|
import com.elab.core.utils.StringUtils;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -95,7 +96,7 @@ public class CheckAnnotationProcess implements BeanPostProcessor, BeanFactoryPos
|
|
|
|
|
|
private void notifyWarning(String message) {
|
|
|
if (isException) {
|
|
|
- throw new RuntimeException(message);
|
|
|
+ throw new CheckException(message);
|
|
|
} else {
|
|
|
logger.error(message);
|
|
|
}
|