页面打印错误 抛出异常 公司内部用

来源:互联网 发布:oracledriver源码 编辑:程序博客网 时间:2024/05/29 16:50
//页面打印错误String errorMsg = "";try {FormBean returnFB = this.getTriangleServiceDelegation().getTriangleService().deleteFactoryManager(parameterFB);errorMsg = returnFB.getCellBeanValue("errorMsg");} catch (Exception e) {e.printStackTrace();errorMsg = e.getMessage();} finally{AlertMessagePOJO alertMessagePOJO = new AlertMessagePOJO(errorMsg, AlertMessagePOJO.TYPE_ERROR);if (StringUtils.isBlank(errorMsg)) {alertMessagePOJO = new AlertMessagePOJO(TriangleUIHelper.getMessageResources(request, TriangleUIHelper.getMulKeyPrefixAlert()+"deleteTriangleAttributeSuccess"), AlertMessagePOJO.TYPE_INFO);}request.getSession().setAttribute(TriangleDefinition.SESSION_ATTRIBUTE_KEY_ALERT_MESSAGE, alertMessagePOJO);}

0 0