public class IOReturnException
extends java.lang.RuntimeException
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.
| Modifier | Constructor and Description |
|---|---|
|
IOReturnException(int kr)
New exception from
kern_return_t |
protected |
IOReturnException(int kr,
java.lang.String msg)
New exception from
kern_return_t with specified message |
| Modifier and Type | Method and Description |
|---|---|
static int |
getCode(int kr)
The low 14 bits of the return value encode the return code.
|
int |
getIOReturnCode() |
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.
|
public IOReturnException(int kr)
kern_return_tkr - The return valueprotected IOReturnException(int kr,
java.lang.String msg)
kern_return_t with specified messagekr - The return valuemsg - The exception messagepublic int getIOReturnCode()
public static int getSystem(int kr)
kr - The return valuepublic static int getSubSystem(int kr)
kr - The return valuepublic static int getCode(int kr)
kr - The return value