#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:
Greg Wilkins 2010-06-07 03:55:55 +00:00
parent fe6a6e86ed
commit b56da2e598
2 changed files with 11 additions and 0 deletions

View File

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

View File

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