修改调用外部程序异常的错误提示信息
This commit is contained in:
@@ -274,11 +274,10 @@ public class AvCfgService extends BaseService{
|
||||
throw new CallExternalProceduresException();
|
||||
}
|
||||
}catch (Exception e) {
|
||||
if(e instanceof MaatConvertException||e instanceof CallExternalProceduresException) {
|
||||
throw e;
|
||||
if(e instanceof MaatConvertException ) {
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage());
|
||||
}else {
|
||||
e.printStackTrace();
|
||||
throw new CallExternalProceduresException();
|
||||
throw new CallExternalProceduresException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage());
|
||||
}
|
||||
}
|
||||
return entity;
|
||||
|
||||
Reference in New Issue
Block a user