exception handling processIt on OrderBatchProcess.java
This commit is contained in:
parent
bb9e72c47a
commit
9aa25ae51d
|
@ -177,6 +177,10 @@ public class OrderBatchProcess extends SvrProcess
|
|||
order.saveEx();
|
||||
addLog(0, null, null, order.getDocumentNo() + ": OK");
|
||||
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());
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue