Merge "Issue #2942 - Updated throw exception." into development
Former-commit-id:b2f2ae3336
[formerly 7613f4d184f3ddb7d9995fe2dad241a00d43a73f] Former-commit-id:bf6693fd8b
This commit is contained in:
commit
e5ca2e49e1
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