Beispiel #1
0
 public CurlException(CURLMcode code) : base(code.ToString())
 {
 }
Beispiel #2
0
 /// <summary>
 /// Get a string description of an error code.
 /// </summary>
 /// <param name="errorNum">
 /// The <see cref="CURLMcode"/> for which to obtain the error
 /// string description.
 /// </param>
 /// <returns>The string description.</returns>
 public String StrError(CURLMcode errorNum)
 {
     return(Marshal.PtrToStringAnsi(External.curl_multi_strerror(
                                        errorNum)));
 }
Beispiel #3
0
 internal static extern IntPtr curl_multi_strerror(CURLMcode errorNum);
Beispiel #4
0
 /// <summary>
 /// Get a string description of an error code.
 /// </summary>
 /// <param name="errorNum">
 /// The <see cref="CURLMcode"/> for which to obtain the error
 /// string description.
 /// </param>
 /// <returns>The string description.</returns>
 public String StrError(CURLMcode errorNum)
 {
     return Marshal.PtrToStringAnsi(External.curl_multi_strerror(
         errorNum));
 }
Beispiel #5
0
 internal static extern IntPtr curl_multi_strerror(CURLMcode errorNum);