curlpp  

Resetting Handle Exceptions

Timothy003
Mon, 16 Nov 2009 22:26:05 -0800

Perhaps I am doing something wrong, but I am calling
cURLpp::Easy::getCurlHandle().setException(NULL) after I catch an
exception from cURLpp::Easy::perform() to delete and reset the
exception before handling the caught exception.
--------------------------------------------------------------------------------
cURLpp::Easy request;

try {
        try {
                request.perform();
        }
        catch (...) {
                request.getCurlHandle().setException(NULL);
                throw;
        }
}
catch (const cURLpp::RuntimeError &) {
        // handle exception
}
--------------------------------------------------------------------------------
Is there a reason why the handle does not do this for me?

--

You received this message because you are subscribed to the Google Groups 
"curlpp" group.
To post to this group, send email to cur...@googlegroups.com.
To unsubscribe from this group, send email to 
curlpp+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/curlpp?hl=.