void ThrowH3Exception()

in src/main/c/h3-java/src/jniapi.c [112:121]


void ThrowH3Exception(JNIEnv *env, H3Error err) {
    jthrowable h3eInstance = (jthrowable)((**env).NewObject(
        env, com_uber_h3core_exceptions_H3Exception,
        com_uber_h3core_exceptions_H3Exception_init, err));

    if (h3eInstance != NULL) {
        (**env).Throw(env, h3eInstance);
        (**env).DeleteLocalRef(env, h3eInstance);
    }
}