This exception is thrown when a JNI query tries to access an element that was not
registered
for JNI access in the program. When an element is not registered, the exception will be
thrown both for elements that exist and elements that do not exist on the given classpath.
The purpose of this exception is to easily discover unregistered elements and to assure that all
JNI operations for registered elements have the expected behaviour.
Queries will succeed (or throw the expected error) if the element was registered for JNI access.
If that is not the case, a MissingJNIRegistrationError will be thrown.
The exception thrown by the JNI query is a pending exception that needs to be explicitly
checked by the calling native code.
Examples:
Registration: "fields": [{"name": "registeredField"}, {"name":
"registeredNonexistentField"}]
GetFieldID(declaringClass, "registeredField") will return the expected field.
GetFieldID(declaringClass, "registeredNonexistentField") will throw a
NoSuchFieldError.
GetFieldID(declaringClass, "unregisteredField") will throw a
MissingJNIRegistrationError.
GetFieldID(declaringClass, "unregisteredNonexistentField") will throw a
MissingJNIRegistrationError.