exception handling processIt on StorageCleanup.java
This commit is contained in:
parent
78c3175f31
commit
b26a378b85
|
@ -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() + " ("
|
||||||
|
|
Loading…
Reference in New Issue