Package com.sun.jna
Class LastErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.jna.LastErrorException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Win32Exception
Exception representing a non-zero error code returned in either
errno
or GetLastError()
.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionLastErrorException
(int code) protected
LastErrorException
(int code, String msg) LastErrorException
(String msg) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LastErrorException
-
LastErrorException
public LastErrorException(int code) -
LastErrorException
-
-
Method Details
-
getErrorCode
public int getErrorCode()- Returns:
- The reported error code
-