From b8e800f1c0569681cc49d012698e59f42e7fb210 Mon Sep 17 00:00:00 2001 From: Edwin Ang Date: Mon, 9 Apr 2012 15:03:07 +0700 Subject: [PATCH] exception handling processIt on InvoiceGenerate.java --- .../src/org/compiere/process/InvoiceGenerate.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java b/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java index 0577c6f696..3d4827c7fa 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java +++ b/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java @@ -492,6 +492,8 @@ public class InvoiceGenerate extends SvrProcess { log.warning("completeInvoice - failed: " + m_invoice); addLog("completeInvoice - failed: " + m_invoice); // Elaine 2008/11/25 + throw new IllegalStateException("Invoice Process Failed: " + m_invoice + " - " + m_invoice.getProcessMsg()); + } m_invoice.saveEx();