More general catching of Exceptions in interval reading to throw MalformedFile exception in all cases
-- Now throws UserException no matter what happens during the reading of the intervals file.
This commit is contained in:
parent
9712fed7a5
commit
4d9582de77
|
|
@ -98,8 +98,8 @@ public final class IntervalBinding<T extends Feature> {
|
|||
intervals.add(toolkit.getGenomeLocParser().createGenomeLoc(feature));
|
||||
line = lineReader.readLine();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
throw new UserException("Problem reading the interval file " + featureIntervals.getSource() + "; " + e.getMessage());
|
||||
} catch (Exception e) {
|
||||
throw new UserException.MalformedFile(featureIntervals.getSource(), "Problem reading the interval file", e);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue