From 1bcf538411602430d67b2f51096f06b190510cd3 Mon Sep 17 00:00:00 2001 From: Edwin Ang Date: Mon, 9 Apr 2012 15:04:14 +0700 Subject: [PATCH] exception handling processIt on ImportOrder.java --- .../src/org/compiere/process/ImportOrder.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportOrder.java b/org.adempiere.base.process/src/org/compiere/process/ImportOrder.java index 372ace49bc..187243b998 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportOrder.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportOrder.java @@ -666,7 +666,11 @@ public class ImportOrder extends SvrProcess if (m_docAction != null && m_docAction.length() > 0) { order.setDocAction(m_docAction); - order.processIt (m_docAction); + if(!order.processIt (m_docAction)) { + log.warning("Order Process Failed: " + order + " - " + order.getProcessMsg()); + throw new IllegalStateException("Order Process Failed: " + order + " - " + order.getProcessMsg()); + + } } order.saveEx(); } @@ -767,7 +771,11 @@ public class ImportOrder extends SvrProcess if (m_docAction != null && m_docAction.length() > 0) { order.setDocAction(m_docAction); - order.processIt (m_docAction); + if(!order.processIt (m_docAction)) { + log.warning("Order Process Failed: " + order + " - " + order.getProcessMsg()); + throw new IllegalStateException("Order Process Failed: " + order + " - " + order.getProcessMsg()); + + } } order.saveEx(); }