curlpp  

Re: Resetting Handle Exceptions

Jean-Philippe Barette-LaPierre
Tue, 17 Nov 2009 05:29:51 -0800

On Tue, Nov 17, 2009 at 1:26 AM, Timothy003 <timothy...@msn.com> wrote:
> 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?

Absolutely no reason. Thanks for the bug report. Fixed on head.

>
> --
>
> 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=.
>
>
>

--

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=.