Issue #2942 - Updated throw exception.
Former-commit-id:cd2fa6f1c2
[formerlyae2275a0ee
] [formerlycd2fa6f1c2
[formerlyae2275a0ee
] [formerly881adcb78f
[formerly 1457190469ec62f7a7aa2fa8e62ee2012dd57c10]]] Former-commit-id:881adcb78f
Former-commit-id:b9279e643b
[formerlyb6685d6dcb
] Former-commit-id:25a222268e
This commit is contained in:
parent
7b01116623
commit
1304746833
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue