Namespace: Nefarius.Utilities.DeviceManagement.Exceptions
A Win32 API has failed.
public class Win32Exception : System.Exception, System.Runtime.Serialization.ISerializable
Inheritance Object → Exception → Win32Exception
Implements ISerializable
public IDictionary Data { get; }
The native Windows error code.
public Nullable<Int32> ErrorCode { get; }
The Win32 error message.
public string ErrorMessage { get; }
public string HelpLink { get; set; }
public int HResult { get; set; }
public Exception InnerException { get; }
public string Message { get; }
public string Source { get; set; }
public string StackTrace { get; }
public MethodBase TargetSite { get; }
Translates a Win32 error code to the user-readable message.
public static string GetMessageFor(Nullable<Int32> errorCode)
errorCode
Nullable<Int32>
The Win32 error code. Gets fetched from Marshal.GetLastWin32Error() if null.
The message, if any, or null.