exception handling processIt on ImportPayment.java

This commit is contained in:
Edwin Ang 2012-04-09 15:03:59 +07:00
parent bba776aff7
commit c71bd4d95c
1 changed files with 5 additions and 1 deletions

View File

@ -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();
}
}