测试是否能获得oracle连接线程--如果发生异常直接返回500

web_backend_develope
chenlw 9 years ago
parent 9184c2b706
commit 381d4172ce

@ -13,6 +13,8 @@ public class ThreadGainOracleConnect extends Thread {
private boolean isConnect = false;
private boolean isExcept = false;
private IOracleExtractService OracleExtract;
private oracleForm form;
@ -31,6 +33,7 @@ public class ThreadGainOracleConnect extends Thread {
try {
this.isConnect = OracleExtract.isConnectTotalOracle(form.getTarget());
} catch (Exception e) {
isExcept = true;
new CustomException(Custom4exception.connect_Oracle_Except,e,form,OracleExtract);
}
}
@ -42,4 +45,11 @@ public class ThreadGainOracleConnect extends Thread {
return isConnect;
}
/**
* @return the isExcept
*/
public boolean isExcept() {
return isExcept;
}
}

Loading…
Cancel
Save