Interface JNIExceptionWrapper.ExceptionHandler
- Enclosing class:
JNIExceptionWrapper
public static interface JNIExceptionWrapper.ExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JNIExceptionWrapper.ExceptionHandlerDefault handler throwingJNIExceptionWrapperfor the pending JNI exception. -
Method Summary
Modifier and TypeMethodDescriptionallowExceptions(Class<? extends Throwable>... allowedExceptions) Creates an exception handler suppressingallowedExceptions.voidHandles the JNI pending exception.
-
Field Details
-
DEFAULT
Default handler throwingJNIExceptionWrapperfor the pending JNI exception.
-
-
Method Details
-
allowExceptions
@SafeVarargs static JNIExceptionWrapper.ExceptionHandler allowExceptions(Class<? extends Throwable>... allowedExceptions) Creates an exception handler suppressingallowedExceptions. Other JNI exceptions are rethrown asJNIExceptionWrapper. -
handleException
Handles the JNI pending exception.
-