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 and Type | Field and Description |
|---|---|
| private int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | IOReturnException(int
The return value kr, String The exception message msg)New exception from |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public static int | Returns: the return codeThe return value kr)The low 14 bits of the return value encode the return code. |
| public int | |
| public static int | Returns: the subsystem valueThe return value kr)The middle 12 bits of the return value encode the subsystem. |
| public static int | Returns: the system valueThe return value kr)The high 6 bits of the return value encode the system. |
| ioReturn | back to summary |
|---|---|
| private int ioReturn | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| IOReturnException | back to summary |
|---|---|
| public IOReturnException(int kr) New exception from
| |
| IOReturnException | back to summary |
|---|---|
| protected IOReturnException(int kr, String msg) New exception from
| |
| formatMessage | back to summary |
|---|---|
| private static String formatMessage(int kr) | |
| getCode | back to summary |
|---|---|
| public static int getCode(int kr) The low 14 bits of the return value encode the return code.
| |
| getIOReturnCode | back to summary |
|---|---|
public int getIOReturnCode()
| |
| getSubSystem | back to summary |
|---|---|
| public static int getSubSystem(int kr) The middle 12 bits of the return value encode the subsystem.
| |
| getSystem | back to summary |
|---|---|
| public static int getSystem(int kr) The high 6 bits of the return value encode the system.
| |