Package com.sun.jna.platform.mac
Class IOReturnException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.jna.platform.mac.IOReturnException
- All Implemented Interfaces:
- 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.
- See Also:
- 
Constructor SummaryConstructorsModifierConstructorDescriptionIOReturnException(int kr) New exception fromkern_return_tprotectedIOReturnException(int kr, String msg) New exception fromkern_return_twith specified message
- 
Method SummaryModifier and TypeMethodDescriptionstatic intgetCode(int kr) The low 14 bits of the return value encode the return code.intstatic intgetSubSystem(int kr) The middle 12 bits of the return value encode the subsystem.static intgetSystem(int kr) The high 6 bits of the return value encode the system.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
IOReturnExceptionpublic IOReturnException(int kr) New exception fromkern_return_t- Parameters:
- kr- The return value
 
- 
IOReturnExceptionNew exception fromkern_return_twith specified message- Parameters:
- kr- The return value
- msg- The exception message
 
 
- 
- 
Method Details- 
getIOReturnCodepublic int getIOReturnCode()- Returns:
- the IOReturn code
 
- 
getSystempublic static int getSystem(int kr) The high 6 bits of the return value encode the system.- Parameters:
- kr- The return value
- Returns:
- the system value
 
- 
getSubSystempublic static int getSubSystem(int kr) The middle 12 bits of the return value encode the subsystem.- Parameters:
- kr- The return value
- Returns:
- the subsystem value
 
- 
getCodepublic static int getCode(int kr) The low 14 bits of the return value encode the return code.- Parameters:
- kr- The return value
- Returns:
- the return code
 
 
-