curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Execption safe

From: Nick Chambers <nchambers_at_lightspeedsystems.com>
Date: Thu, 1 Feb 2018 16:26:49 +0000

> Hi All,
>
> Kindly let me know whether we have to handle any exception while using libcurl library functions to make our application exception safe . Will libcurl throw any exception in corner cases. if yes ,so how do we handle that.
>
> Regards,
> Surya

libcurl is written in C, which doesn’t have an exception stack (at least not without a lot of boilerplate). As far as I know, you only get cURL errors by checking the values returned from various functions. If you’re using a binding for libcurl, I recommend checking if the bindings have any documentation on what they might or might not do when an error is encountered.

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-02-01