Capture the class of the exception in GATKRunReport
-- As suggested by David.
This commit is contained in:
parent
5200f7f919
commit
bb2c10b785
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue