exception handling processIt on ImportPayment.java
This commit is contained in:
parent
bba776aff7
commit
c71bd4d95c
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue