Skip to content

Commit

Permalink
use IAE
Browse files Browse the repository at this point in the history
  • Loading branch information
akiezun committed Aug 3, 2015
1 parent e3e2107 commit ed03da7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public void filterToOnlyOverlappingUnclippedReads(final GenomeLoc location) {
*/
public void filterPoorlyModeledReads(final double maximumErrorPerBase) {
if (alleles.numberOfAlleles() == 0) {
throw new IllegalStateException("unsupported for read-likelihood collections with no alleles");
throw new IllegalArgumentException("unsupported for read-likelihood collections with no alleles");
}
if (Double.isNaN(maximumErrorPerBase) || maximumErrorPerBase <= 0.0) {
throw new IllegalArgumentException("the maximum error per base must be a positive number");
Expand Down

0 comments on commit ed03da7

Please sign in to comment.