|
@ -207,8 +207,10 @@ public abstract class EnvelopRestEndpoint extends Exception {
|
|
|
if (baseExceptionDictDO!=null){
|
|
|
e.printStackTrace();
|
|
|
return failed(baseExceptionDictDO.getRemindContent(),Integer.parseInt(baseExceptionDictDO.getCode()));
|
|
|
}else {
|
|
|
return failed(e.getMessage(),-10000);
|
|
|
}
|
|
|
if (e.getClass().equals(DataAccessException.class)) {
|
|
|
/* if (e.getClass().equals(DataAccessException.class)) {
|
|
|
e.printStackTrace();//数据库操作失败
|
|
|
return null;
|
|
|
} else if (e.getClass().toString().equals(
|
|
@ -252,7 +254,7 @@ public abstract class EnvelopRestEndpoint extends Exception {
|
|
|
} else {
|
|
|
e.printStackTrace();//程序内部错误,操作失败!
|
|
|
return null;
|
|
|
}
|
|
|
}*/
|
|
|
}
|
|
|
|
|
|
protected Envelop failed (String message, int status) {
|