mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
provide a cause for CompoundRuntimeException
to get at least one stack trace when it's used as a cause
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user