From 425ab02786f85b09db1af5d56e983e8c0b7adec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Sat, 26 Oct 2019 13:50:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=A8=E5=B1=80=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=99=A8GlobalExceptionHandlerResolver?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E5=88=B0demo=E5=BE=AE?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=9A=84=E5=BC=82=E5=B8=B8=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pigx全局异常处理器GlobalExceptionHandlerResolver能捕捉到自定义异常ValidateCodeException,但是e.getMessage()无法获取到文本信息; Closes #I140L5 --- .../pig/common/core/exception/ValidateCodeException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/exception/ValidateCodeException.java b/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/exception/ValidateCodeException.java index 1db33b2f..371b76dc 100755 --- a/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/exception/ValidateCodeException.java +++ b/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/exception/ValidateCodeException.java @@ -20,7 +20,7 @@ package com.pig4cloud.pig.common.core.exception; * @author lengleng * @date 2018年06月22日16:22:15 */ -public class ValidateCodeException extends Exception { +public class ValidateCodeException extends RuntimeException { private static final long serialVersionUID = -7285211528095468156L; public ValidateCodeException() {