exception handling processIt on BankStatementPayment.java

This commit is contained in:
Edwin Ang 2012-04-09 15:05:08 +07:00
parent d14c3fd4c2
commit 4621e9809b
1 changed files with 5 additions and 1 deletions

View File

@ -223,7 +223,11 @@ public class BankStatementPayment extends SvrProcess
return null; return null;
payment.saveEx(); payment.saveEx();
// //
payment.processIt(MPayment.DOCACTION_Complete); if (!payment.processIt(MPayment.DOCACTION_Complete)) {
log.warning("Payment Process Failed: " + payment.getDocumentNo() + " " + payment.getProcessMsg());
throw new IllegalStateException("Payment Process Failed: " + payment.getDocumentNo() + " " + payment.getProcessMsg());
}
payment.saveEx(); payment.saveEx();
return payment; return payment;
} // createPayment } // createPayment