provide a cause for CompoundRuntimeException

to get at least one stack trace when it's used as a cause
This commit is contained in:
peter
2017-07-13 17:58:13 +02:00
parent 90276fd30c
commit 9e79d40766
@@ -37,6 +37,11 @@ public class CompoundRuntimeException extends RuntimeException {
myExceptions = throwables;
}
@Override
public synchronized Throwable getCause() {
return ContainerUtil.getFirstItem(myExceptions);
}
public List<Throwable> getExceptions() {
return myExceptions;
}