|
@@ -27,12 +27,18 @@
|
|
<p>错误信息:</p><p>
|
|
<p>错误信息:</p><p>
|
|
<%
|
|
<%
|
|
if (ex!=null){
|
|
if (ex!=null){
|
|
- if (ex instanceof javax.validation.ConstraintViolationException){
|
|
|
|
- for (String s : BeanValidators.extractPropertyAndMessageAsList((javax.validation.ConstraintViolationException)ex, ": ")){
|
|
|
|
- out.print(s+"<br/>");
|
|
|
|
|
|
+ out.print(" "+ex+"<br/>");
|
|
|
|
+ for(StackTraceElement ste:ex.getStackTrace()){
|
|
|
|
+ out.print(" "+ste+"<br/>");
|
|
|
|
+ }
|
|
|
|
+ Throwable tb=ex.getCause();
|
|
|
|
+ while(tb!=null){
|
|
|
|
+ out.print("Caused by:<br/>");
|
|
|
|
+ out.print(" "+tb+"<br/>");
|
|
|
|
+ for(StackTraceElement ste:tb.getStackTrace()){
|
|
|
|
+ out.print(" "+ste+"<br/>");
|
|
}
|
|
}
|
|
- }else{
|
|
|
|
- out.print(ex+"<br/>");
|
|
|
|
|
|
+ tb=tb.getCause();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
%>
|
|
%>
|