From c71bd4d95cdac49a220394c204d632cc415610af Mon Sep 17 00:00:00 2001 From: Edwin Ang Date: Mon, 9 Apr 2012 15:03:59 +0700 Subject: [PATCH] exception handling processIt on ImportPayment.java --- .../src/org/compiere/process/ImportPayment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportPayment.java b/org.adempiere.base.process/src/org/compiere/process/ImportPayment.java index 59518b9c44..59ca16b95d 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportPayment.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportPayment.java @@ -502,7 +502,11 @@ public class ImportPayment extends SvrProcess if (payment != null && m_docAction != null && m_docAction.length() > 0) { payment.setDocAction(m_docAction); - payment.processIt (m_docAction); + if(!payment.processIt (m_docAction)) { + log.warning("Payment Process Failed: " + payment + " - " + payment.getProcessMsg()); + throw new IllegalStateException("Payment Process Failed: " + payment + " - " + payment.getProcessMsg()); + + } payment.saveEx(); } }