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:
Mark DePristo 2012-02-27 14:02:26 -05:00
parent 9712fed7a5
commit 4d9582de77
1 changed files with 2 additions and 2 deletions

View File

@ -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 {