From 82f9327b5e7aea3ceaee453a3ac652a42c72ae4d Mon Sep 17 00:00:00 2001 From: depristo Date: Sat, 13 Nov 2010 22:18:42 +0000 Subject: [PATCH] Throw the right exception git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4666 348d0f76-0448-11de-a6fe-93d51630548a --- .../sting/gatk/walkers/variantrecalibration/Tranche.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/Tranche.java b/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/Tranche.java index b4ffbfeff..1be2eb1d0 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/Tranche.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/variantrecalibration/Tranche.java @@ -120,7 +120,7 @@ public class Tranche implements Comparable { if ( bindings.containsKey(key) ) return Double.valueOf(bindings.get(key)); else if ( required ) { - throw new UserException("Malformed tranches file. Missing required key " + key); + throw new UserException.MalformedFile("Malformed tranches file. Missing required key " + key); } else return -1; @@ -130,7 +130,7 @@ public class Tranche implements Comparable { if ( bindings.containsKey(key) ) return Integer.valueOf(bindings.get(key)); else if ( required ) { - throw new UserException("Malformed tranches file. Missing required key " + key); + throw new UserException.MalformedFile("Malformed tranches file. Missing required key " + key); } else return -1; @@ -177,4 +177,4 @@ public class Tranche implements Comparable { throw new UserException.CouldNotReadInputFile(f, e); } } -} \ No newline at end of file +}