git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@705
de75baf8-a10c-0410-a50a-
987c0e22f00f
int responseCode = XMLString::parseInt(doc->getDocumentElement()->getFirstChild()->getNodeValue());
doc->release();
if (responseCode == HTTPResponse::XMLTOOLING_HTTP_STATUS_NOTMODIFIED) {
- throw responseCode; // toss out as a "known" case to handle gracefully
+ throw (long)responseCode; // toss out as a "known" case to handle gracefully
}
else {
m_log.warn("remote resource fetch returned atypical status code (%d)", responseCode);
if (ret.first)
ret.second->getOwnerDocument()->release();
}
- catch (int& ex) {
+ catch (long& ex) {
if (ex == HTTPResponse::XMLTOOLING_HTTP_STATUS_NOTMODIFIED) {
m_log.info("remote resource (%s) unchanged from cached version", m_source.c_str());
}