Issue #2942 - Updated throw exception.

Former-commit-id: cd2fa6f1c2 [formerly ae2275a0ee] [formerly cd2fa6f1c2 [formerly ae2275a0ee] [formerly 881adcb78f [formerly 1457190469ec62f7a7aa2fa8e62ee2012dd57c10]]]
Former-commit-id: 881adcb78f
Former-commit-id: b9279e643b [formerly b6685d6dcb]
Former-commit-id: 25a222268e
This commit is contained in:
Slav Korolev 2014-04-17 09:10:13 -04:00
parent 7b01116623
commit 1304746833

View file

@ -56,6 +56,8 @@ import com.raytheon.uf.edex.distribution.DistributionPatterns;
* ------------ ---------- ----------- --------------------------
* Oct 28, 2009 brockwoo Initial creation
* Sep 03, 2013 2327 rjpeter Added directory routing by plugin and date of product.
* Apr 17, 2014 2942 skorolev Updated throw exception in sendFileToIngest.
*
* </pre>
*
* @author brockwoo
@ -285,6 +287,10 @@ public class MessageGenerator implements Processor {
try {
File archiveFile = copyFileToArchive(new File(inFile));
if (archiveFile == null) {
throw new Exception("File " + inFile
+ " has not been copied into archive.");
}
EDEXUtil.getMessageProducer().sendAsync(route,
archiveFile.getAbsolutePath());
} catch (Exception e) {