instrumented so that NPE contain the XML content it arised from

git-svn-id: http://jclouds.googlecode.com/svn/trunk@1474 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-06-27 18:27:59 +00:00
parent fd08265c67
commit 8508c37a3b
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ public class ParseSax<T> extends HttpFutureCommand.ResponseCallable<T> {
message.append("\n").append(response);
}
logger.error(e, message.toString());
Utils.<HttpException> rethrowIfRuntimeOrSameType(e);
if (!(e instanceof NullPointerException))
Utils.<HttpException> rethrowIfRuntimeOrSameType(e);
throw new HttpException(message.toString(), e);
} finally {
IOUtils.closeQuietly(xml);