Catch RuntimeException and add the bad file name to the newly thown exception

This commit is contained in:
Ron Levine 2014-10-28 10:31:39 -04:00
parent c14fccb571
commit 6f78bf5041
1 changed files with 2 additions and 1 deletions

View File

@ -244,9 +244,10 @@ class ReferenceOrderedQueryDataPool extends ResourcePool<RMDTrack,LocationAwareS
}
} catch (FileNotFoundException e) {
throw new UserException.CouldNotReadInputFile(fileDescriptor.getName(), "it could not be found");
} catch (IOException e) {
} catch (IOException | RuntimeException e) {
throw new ReviewedGATKException("Unable to create iterator for rod named " + fileDescriptor.getName(),e);
}
}
@Override