throw (WebTestException) e;
}
else if (e instanceof FailingHttpStatusCodeException)
{
LOG.debug("Wrapping FailingHttpStatusCodeException in StepFailedException: " + e.getMessage());
final FailingHttpStatusCodeException he = (FailingHttpStatusCodeException) e;
throw new StepFailedException("HTTP error " + he.getStatusCode(), he);
}
else if (e instanceof XPathException)
{
LOG.debug("Wrapping XPathException in StepFailedException: " + e.getMessage());
throw new StepFailedException(e.getMessage(), (Exception) e);