exception handling processIt on StorageCleanup.java

This commit is contained in:
Edwin Ang 2012-04-09 15:01:56 +07:00
parent 78c3175f31
commit b26a378b85
1 changed files with 5 additions and 1 deletions

View File

@ -170,7 +170,11 @@ public class StorageCleanup extends SvrProcess
} // for all movements } // for all movements
// Process // Process
mh.processIt(MMovement.ACTION_Complete); if (!mh.processIt(MMovement.ACTION_Complete)) {
log.warning("Movement Process Failed: " + mh + " - " + mh.getProcessMsg());
throw new IllegalStateException("Movement Process Failed: " + mh + " - " + mh.getProcessMsg());
}
mh.saveEx(); mh.saveEx();
addLog(0, null, new BigDecimal(lines), "@M_Movement_ID@ " + mh.getDocumentNo() + " (" addLog(0, null, new BigDecimal(lines), "@M_Movement_ID@ " + mh.getDocumentNo() + " ("