exception handling processIt on BankStatementPayment.java
This commit is contained in:
parent
d14c3fd4c2
commit
4621e9809b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue