Package com.sun.jna.platform.mac
Klasse IOReturnException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.jna.platform.mac.IOReturnException
- Alle implementierten Schnittstellen:
Serializable
Exception encapsulating
IOReturn
I/O Kit Error Return Values, defined
as kern_return_t
values in IOKit/IOReturn.h
The return value supplies information in three separate bit fields: the high 6 bits specify the system in which the error occurred, the next 12 bits specify the subsystem, and the final 14 bits specify the error code itself.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungIOReturnException
(int kr) New exception fromkern_return_t
protected
IOReturnException
(int kr, String msg) New exception fromkern_return_t
with specified message -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic int
getCode
(int kr) The low 14 bits of the return value encode the return code.int
static int
getSubSystem
(int kr) The middle 12 bits of the return value encode the subsystem.static int
getSystem
(int kr) The high 6 bits of the return value encode the system.Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
IOReturnException
public IOReturnException(int kr) New exception fromkern_return_t
- Parameter:
kr
- The return value
-
IOReturnException
New exception fromkern_return_t
with specified message- Parameter:
kr
- The return valuemsg
- The exception message
-
-
Methodendetails
-
getIOReturnCode
public int getIOReturnCode()- Gibt zurück:
- the IOReturn code
-
getSystem
public static int getSystem(int kr) The high 6 bits of the return value encode the system.- Parameter:
kr
- The return value- Gibt zurück:
- the system value
-
getSubSystem
public static int getSubSystem(int kr) The middle 12 bits of the return value encode the subsystem.- Parameter:
kr
- The return value- Gibt zurück:
- the subsystem value
-
getCode
public static int getCode(int kr) The low 14 bits of the return value encode the return code.- Parameter:
kr
- The return value- Gibt zurück:
- the return code
-