java.lang.Object
java.lang.Throwable
java.lang.Exception
com.yasuenag.ffmasm.PlatformException
- All Implemented Interfaces:
Serializable
Thrown when platform functions fail.
- Author:
- Yasumasa Suenaga
- See Also:
-
Constructor Summary
ConstructorDescriptionPlatformException
(String message, int errcode) Constructs a new exception with the specified detail message and error code from platform.PlatformException
(Throwable cause) Constructs a new exception with the caused Throwable. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns error code which relates to this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PlatformException
Constructs a new exception with the caused Throwable. The cause is not initialized.- Parameters:
cause
- caused Throwable
-
PlatformException
Constructs a new exception with the specified detail message and error code from platform. The cause is not initialized.- Parameters:
message
- exception messageerrcode
- error code from platform
-
-
Method Details
-
getErrCode
public int getErrCode()Returns error code which relates to this exception. 0 means OS did not return any error (e.g. errcode = 0) - it means some error happen in foreign function call in Java.- Returns:
- error code which relates to this exception.
-