Capture the class of the exception in GATKRunReport

-- As suggested by David.
This commit is contained in:
Mark DePristo 2012-03-14 12:16:04 -04:00
parent 5200f7f919
commit bb2c10b785
1 changed files with 4 additions and 0 deletions

View File

@ -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());