MCPcopy Create free account
hub / github.com/apple/foundationdb / throwNamedException

Function throwNamedException

bindings/java/fdbJNI.cpp:116–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void 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
128void throwRuntimeEx(JNIEnv* jenv, const char* message) {
129 throwNamedException(jenv, "java/lang/RuntimeException", message);

Callers 2

throwRuntimeExFunction · 0.85
throwParamNotNullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected