Class PInvokeException
- Namespace
- VpnHood.Net.Toolkit.Exceptions
- Assembly
- VpnHood.Net.Toolkit.dll
The exception that is thrown when a native call fails, with the error code it returned.
public class PInvokeException : ExternalException, ISerializable
- Inheritance
-
PInvokeException
- Implements
- Inherited Members
Constructors
PInvokeException(string)
Initializes a new instance of the PInvokeException class with the last native error of the thread, from GetLastWin32Error().
public PInvokeException(string message)
Parameters
messagestringThe message.
PInvokeException(string, int)
Initializes a new instance of the PInvokeException class.
public PInvokeException(string message, int errorCode)