.evaluate("/Error/@CreationDate", doc, XPathConstants.STRING);
String calaisVersion = (String) xpath
.evaluate("/Error/@CalaisVersion", doc, XPathConstants.STRING);
String exception = (String) xpath
.evaluate("/Error/Exception/text()", doc, XPathConstants.STRING);
return new CalaisException(method, calaisRequestID, creationDate,
calaisVersion, exception);
} catch (Exception e) {
throw new RuntimeException("Unable to parse exception", e);
}
}