| 114 | } |
| 115 | |
| 116 | void throwNamedException(JNIEnv* jenv, const char* class_full_name, const char* message) { |
| 117 | jclass exceptionClass = jenv->FindClass(class_full_name); |
| 118 | if (jenv->ExceptionOccurred()) |
| 119 | return; |
| 120 | |
| 121 | if (jenv->ThrowNew(exceptionClass, message) != 0) { |
| 122 | if (jenv->ExceptionOccurred()) |
| 123 | return; |
| 124 | jenv->FatalError("FDB: Error throwing exception"); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | void throwRuntimeEx(JNIEnv* jenv, const char* message) { |
| 129 | throwNamedException(jenv, "java/lang/RuntimeException", message); |
no outgoing calls
no test coverage detected