public static interface JNIExceptionWrapper.ExceptionHandler
| Modifier and Type | Field and Description |
|---|---|
static JNIExceptionWrapper.ExceptionHandler |
DEFAULT
Default handler throwing
JNIExceptionWrapper for the pending JNI exception. |
| Modifier and Type | Method and Description |
|---|---|
static JNIExceptionWrapper.ExceptionHandler |
allowExceptions(Class<? extends Throwable>... allowedExceptions)
Creates an exception handler suppressing
allowedExceptions. |
void |
handleException(JNIExceptionWrapper.ExceptionHandlerContext context)
Handles the JNI pending exception.
|
static final JNIExceptionWrapper.ExceptionHandler DEFAULT
JNIExceptionWrapper for the pending JNI exception.@SafeVarargs static JNIExceptionWrapper.ExceptionHandler allowExceptions(Class<? extends Throwable>... allowedExceptions)
allowedExceptions. Other JNI exceptions
are rethrown as JNIExceptionWrapper.void handleException(JNIExceptionWrapper.ExceptionHandlerContext context)