public class NativeHookException extends Exception
| Modifier and Type | Field and Description |
|---|---|
static int |
DARWIN_AXAPI_DISABLED
Apple access for assistive devices is disabled.
|
static int |
DARWIN_CREATE_EVENT_PORT
Apple could not create an event port.
|
static int |
DARWIN_CREATE_OBSERVER
Apple could not create an observer.
|
static int |
DARWIN_CREATE_RUN_LOOP_SOURCE
Apple could not create a run loop source.
|
static int |
DARWIN_GET_RUNLOOP
Apple could not acquire the current run loop.
|
static int |
HOOK_FAILURE
General failure error code.
|
static int |
UNSPECIFIED_FAILURE
Unspecified failure error code.
|
static int |
WIN_SET_HOOK
Windows SetWindowsHookEx function failed to register the low level hook.
|
static int |
X11_OPEN_DISPLAY
X11 open display error code.
|
static int |
X11_RECORD_ALLOC_RANGE
X11 extension XRecord could not allocate range.
|
static int |
X11_RECORD_CREATE_CONTEXT
X11 extension XRecord could not create a context.
|
static int |
X11_RECORD_ENABLE_CONTEXT
X11 extension XRecord could not enable the context.
|
static int |
X11_RECORD_GET_CONTEXT
X11 extension XRecord could not enable the context.
|
static int |
X11_RECORD_NOT_FOUND
X11 extension XRecord was not found.
|
| Constructor and Description |
|---|
NativeHookException()
Instantiates a new
NativeHookException with UNKNOWN_FAILURE as its error code and null as its
detail message. |
NativeHookException(int code)
Instantiates a new
NativeHookException with a specified error code and null as its detail message. |
NativeHookException(int code,
String message)
Instantiates a new
NativeHookException with a specified code and detail message. |
NativeHookException(int code,
String message,
Throwable cause)
Instantiates a new
NativeHookException with a specified error code, detail message and cause. |
NativeHookException(int code,
Throwable cause)
Instantiates a new
NativeHookException with a specified error code and cause. |
NativeHookException(String message)
Instantiates a new
NativeHookException with UNKNOWN_FAILURE as its error code and a specified
detail message. |
NativeHookException(String message,
Throwable cause)
Instantiates a new
NativeHookException with a specified detail message and cause. |
NativeHookException(Throwable cause)
Instantiates a new
NativeHookException with a specified cause. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Get the native error code associated with this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int UNSPECIFIED_FAILURE
public static final int HOOK_FAILURE
public static final int X11_OPEN_DISPLAY
public static final int X11_RECORD_NOT_FOUND
public static final int X11_RECORD_ALLOC_RANGE
public static final int X11_RECORD_CREATE_CONTEXT
public static final int X11_RECORD_ENABLE_CONTEXT
public static final int X11_RECORD_GET_CONTEXT
public static final int WIN_SET_HOOK
public static final int DARWIN_AXAPI_DISABLED
public static final int DARWIN_CREATE_EVENT_PORT
public static final int DARWIN_CREATE_RUN_LOOP_SOURCE
public static final int DARWIN_GET_RUNLOOP
public static final int DARWIN_CREATE_OBSERVER
public NativeHookException()
NativeHookException with UNKNOWN_FAILURE as its error code and null as its
detail message.public NativeHookException(int code)
NativeHookException with a specified error code and null as its detail message.code - The native error code.public NativeHookException(String message)
NativeHookException with UNKNOWN_FAILURE as its error code and a specified
detail message.message - The detail message.public NativeHookException(int code,
String message)
NativeHookException with a specified code and detail message.code - The native error code.message - The detail message.public NativeHookException(String message, Throwable cause)
NativeHookException with a specified detail message and cause.message - The detail message.cause - The cause of the exception. A null value is permitted, and indicates that the cause is unknown.public NativeHookException(int code,
String message,
Throwable cause)
NativeHookException with a specified error code, detail message and cause.code - The native error code.message - The detail message.cause - The cause of the exception. A null value is permitted, and indicates that the cause is unknown.public NativeHookException(Throwable cause)
NativeHookException with a specified cause.cause - The cause of the exception. A null value is permitted, and indicates that the cause is unknown.public NativeHookException(int code,
Throwable cause)
NativeHookException with a specified error code and cause.code - The native error code.cause - The cause of the exception. A null value is permitted, and indicates that the cause is unknown.Copyright © 2006-2017 ${project.vendor}. All Rights Received.