From 9aa25ae51d43eae5db136a02ada7efe734929449 Mon Sep 17 00:00:00 2001 From: Edwin Ang Date: Mon, 9 Apr 2012 15:02:34 +0700 Subject: [PATCH] exception handling processIt on OrderBatchProcess.java --- .../src/org/compiere/process/OrderBatchProcess.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java b/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java index cda54a9546..8e8980a890 100644 --- a/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java +++ b/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java @@ -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;