From bb2c10b785fa8ad951639429cd4815a9b46ceece Mon Sep 17 00:00:00 2001 From: Mark DePristo Date: Wed, 14 Mar 2012 12:16:04 -0400 Subject: [PATCH] Capture the class of the exception in GATKRunReport -- As suggested by David. --- .../broadinstitute/sting/gatk/phonehome/GATKRunReport.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/java/src/org/broadinstitute/sting/gatk/phonehome/GATKRunReport.java b/public/java/src/org/broadinstitute/sting/gatk/phonehome/GATKRunReport.java index bc7d5c6ca..3bc336124 100644 --- a/public/java/src/org/broadinstitute/sting/gatk/phonehome/GATKRunReport.java +++ b/public/java/src/org/broadinstitute/sting/gatk/phonehome/GATKRunReport.java @@ -344,8 +344,12 @@ public class GATKRunReport { @Element(required = false, name = "is-user-exception") Boolean isUserException; + @Element(required = false, name = "exception-class") + Class exceptionClass; + public ExceptionToXML(Throwable e) { message = e.getMessage(); + exceptionClass = e.getClass(); isUserException = e instanceof UserException; for (StackTraceElement element : e.getStackTrace()) { stackTrace.add(element.toString());