系统报的异常代码
13:50:00 [DEBUG] org.nutz.dao.impl.sql.run.NutDaoExecutor - SQLException
com.ibm.db2.jcc.am.io: DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703, SQLERRMC=KJRQ, DRIVER=3.57.82
我捕捉异常的代码
try {
Dao eastDao = EastConUtil.getNewConnect(brNo);// 获取数据库连接
String tableSchema = sysEastUrlDao.fetch(brNo).getTableSchema();
if (eastDao.count(tableSchema + ".T_GX_YGB", Cnd.where("cjrq", "=", reportDate)) > 0) {
** toStartCheck(brNo, reportDate, tableSchema, eastDao);**
} else {
EastConUtil.dsClose();//关闭数据库连接
return super.requestResult(false, brNo + "机构 " + reportDate.substring(0, 6) + "月EAST报表还没有生成,请先生成报表!");
}
}** catch (Exception e) {
EastConUtil.dsClose();
return super.requestResult(false, e.getMessage());**
}
抛出异常的方法
public void toStartCheck(String brNo, String reportDate, String tableSchema, Dao eastDao) throws NullPointerException,SQLException {
List lists = checkFormulaDao.dao().query(CheckFormula.class, null);
这个异常出来了之后,我的这次的操作还在往下面运行并没有断了,我自己想让函数执行结束并返回的