Merge "Throw OOM exception with error status" into tm-qpr-dev
This commit is contained in:
@@ -428,7 +428,7 @@ static jlong nativeCreate(JNIEnv* env, jclass clazz, jobject sessionObj,
|
|||||||
jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
|
jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
|
||||||
return 0;
|
return 0;
|
||||||
} else if (err != NO_ERROR) {
|
} else if (err != NO_ERROR) {
|
||||||
jniThrowException(env, OutOfResourcesException, NULL);
|
jniThrowException(env, OutOfResourcesException, statusToString(err).c_str());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user