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