Merge "Throw OOM exception with error status" into tm-qpr-dev

This commit is contained in:
Winson Chung
2023-02-14 06:01:14 +00:00
committed by Android (Google) Code Review

View File

@@ -428,7 +428,7 @@ static jlong nativeCreate(JNIEnv* env, jclass clazz, jobject sessionObj,
jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
return 0;
} else if (err != NO_ERROR) {
jniThrowException(env, OutOfResourcesException, NULL);
jniThrowException(env, OutOfResourcesException, statusToString(err).c_str());
return 0;
}