|
|
|
@@ -34,6 +34,14 @@ public class GlobalDefultExceptionHandler { |
|
|
|
log(e, request); |
|
|
|
|
|
|
|
if(isFmException) { |
|
|
|
if(e instanceof MallinkException) { |
|
|
|
MallinkException me = (MallinkException)e; |
|
|
|
if(me.getErrorCode() == ErrorCode.NET_TOKEN_EMPTY.getCode() |
|
|
|
|| me.getErrorCode() == ErrorCode.NET_TOKEN_INVALID.getCode()) { |
|
|
|
// token异常问题, 不发邮件 |
|
|
|
return e.getMessage(); |
|
|
|
} |
|
|
|
} |
|
|
|
StringWriter sw = new StringWriter(); |
|
|
|
PrintWriter pw = new PrintWriter(sw); |
|
|
|
e.printStackTrace(pw); |
|
|
|
@@ -52,7 +60,7 @@ public class GlobalDefultExceptionHandler { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return "发生异常"; |
|
|
|
return e.getMessage(); |
|
|
|
} |
|
|
|
|
|
|
|
private void log(Exception ex, HttpServletRequest request) { |
|
|
|
|