Catch RuntimeException and add the bad file name to the newly thown exception
This commit is contained in:
parent
c14fccb571
commit
6f78bf5041
|
|
@ -244,9 +244,10 @@ class ReferenceOrderedQueryDataPool extends ResourcePool<RMDTrack,LocationAwareS
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
throw new UserException.CouldNotReadInputFile(fileDescriptor.getName(), "it could not be found");
|
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);
|
throw new ReviewedGATKException("Unable to create iterator for rod named " + fileDescriptor.getName(),e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue