#310603: readded unwrapping of caused by exceptions
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1931 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
fe6a6e86ed
commit
b56da2e598
|
@ -303,6 +303,13 @@ public class StdErrLog implements Logger
|
|||
buffer.append("\n\tat ");
|
||||
format(buffer, elements[i].toString());
|
||||
}
|
||||
|
||||
Throwable cause = thrown.getCause();
|
||||
if (cause!=null && cause!=thrown)
|
||||
{
|
||||
buffer.append("\nCaused by: ");
|
||||
format(buffer,cause);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -114,6 +114,10 @@ public class ResourceCollection extends Resource
|
|||
throw new IllegalArgumentException(_resources[i] + " is not an existing directory.");
|
||||
}
|
||||
}
|
||||
catch(IllegalArgumentException e)
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
throw new RuntimeException(e);
|
||||
|
|
Loading…
Reference in New Issue