public CurlException(CURLMcode code) : base(code.ToString()) { }
/// <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))); }
internal static extern IntPtr curl_multi_strerror(CURLMcode errorNum);
/// <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)); }