Package org.jvnet.winp
Class WinpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jvnet.winp.WinpException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NotWindowsException
Indicates a problem in Winp.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWinpException
(String message) WinpException
(String message, int lastError, String file, int line) Used by JNI to report an error.WinpException
(String message, Throwable cause) WinpException
(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionint
Win32 error code, if this error originated in a failed Win32 API call.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WinpException
public WinpException() -
WinpException
-
WinpException
-
WinpException
-
WinpException
Used by JNI to report an error.
-
-
Method Details
-
getWin32ErrorCode
public int getWin32ErrorCode()Win32 error code, if this error originated in a failed Win32 API call.- Returns:
- -1 if the exception was not due to the failed Win32 API call.
-