libcURL.FormatError - charonn0/RB-libcURL GitHub Wiki
libcURL.FormatError
Method Signature
Protected Function FormatError(cURLErrorNumber As Integer, Encoding As TextEncoding = Nil) As String
Return value
Returns a human-readable message for the cURLErrorNumber.
Parameters
| Name | Type | Comment |
|---|---|---|
| cURLErrorNumber | Integer | The error number to format |
| Encoding | TextEncoding | Optional. If specified, the encoding that the message should be converted into. |
Remarks
Pass a libcURL error number, returns the error message for that error number. If a TextEncoding is specified, the message is converted into that encoding; otherwise, the message is encoded using ASCII.
See also:
FormatMultiErrorFormatShareErrorcurl_easy_strerrorin the libcURL documentation.