Having a malformed GATK report is a User Error

This commit is contained in:
Eric Banks 2012-11-13 11:53:12 -05:00
parent 525cf331f4
commit c7335c9902
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@
package org.broadinstitute.sting.gatk.report; package org.broadinstitute.sting.gatk.report;
import org.broadinstitute.sting.utils.exceptions.ReviewedStingException; import org.broadinstitute.sting.utils.exceptions.ReviewedStingException;
import org.broadinstitute.sting.utils.exceptions.UserException;
public enum GATKReportVersion { public enum GATKReportVersion {
/** /**
@ -91,6 +92,6 @@ public enum GATKReportVersion {
if (header.startsWith("#:GATKReport.v1.1")) if (header.startsWith("#:GATKReport.v1.1"))
return GATKReportVersion.V1_1; return GATKReportVersion.V1_1;
throw new ReviewedStingException("Unknown GATK report version in header: " + header); throw new UserException.BadInput("The GATK report has an unknown/unsupported version in the header: " + header);
} }
} }