Skip to content

Commit 7070bc6

Browse files
committed
combined exceptions
1 parent a22ed41 commit 7070bc6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

biojava-core/src/main/java/org/biojava/nbio/core/sequence/io/GenbankSequenceParser.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,7 @@ private List<String[]> readSection(BufferedReader bufferedReader) {
405405
}
406406
}
407407
}
408-
} catch (IOException e) {
409-
throw new ParserException(e.getMessage());
410-
} catch (RuntimeException e) {
408+
} catch (IOException | RuntimeException e) {
411409
throw new ParserException(e.getMessage());
412410
}
413411
return section;

0 commit comments

Comments
 (0)