exception handling processIt on OrderBatchProcess.java

This commit is contained in:
Edwin Ang 2012-04-09 15:02:34 +07:00
parent bb9e72c47a
commit 9aa25ae51d
1 changed files with 4 additions and 0 deletions

View File

@ -177,6 +177,10 @@ public class OrderBatchProcess extends SvrProcess
order.saveEx(); order.saveEx();
addLog(0, null, null, order.getDocumentNo() + ": OK"); addLog(0, null, null, order.getDocumentNo() + ": OK");
return true; return true;
} else {
log.warning("Order Process Failed: " + order + " - " + order.getProcessMsg());
throw new IllegalStateException("Order Process Failed: " + order + " - " + order.getProcessMsg());
} }
addLog (0, null, null, order.getDocumentNo() + ": Error " + order.getProcessMsg()); addLog (0, null, null, order.getDocumentNo() + ": Error " + order.getProcessMsg());
return false; return false;