Invalid copy-passed exception messages in FaceDetect sample for Android fixed.

This commit is contained in:
Alexander Smorkalov 2013-10-08 10:28:24 +04:00
parent 801054d611
commit fdc1a06397

@ -45,7 +45,7 @@ JNIEXPORT jlong JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker
{ {
LOGD("nativeCreateObject caught unknown exception"); LOGD("nativeCreateObject caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception"); jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); jenv->ThrowNew(je, "Unknown exception in JNI code of DetectionBasedTracker.nativeCreateObject()");
return 0; return 0;
} }
@ -77,7 +77,7 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_
{ {
LOGD("nativeDestroyObject caught unknown exception"); LOGD("nativeDestroyObject caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception"); jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); jenv->ThrowNew(je, "Unknown exception in JNI code of DetectionBasedTracker.nativeDestroyObject()");
} }
LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDestroyObject exit"); LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDestroyObject exit");
} }
@ -102,7 +102,7 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_
{ {
LOGD("nativeStart caught unknown exception"); LOGD("nativeStart caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception"); jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); jenv->ThrowNew(je, "Unknown exception in JNI code of DetectionBasedTracker.nativeStart()");
} }
LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStart exit"); LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStart exit");
} }
@ -127,7 +127,7 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_
{ {
LOGD("nativeStop caught unknown exception"); LOGD("nativeStop caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception"); jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); jenv->ThrowNew(je, "Unknown exception in JNI code of DetectionBasedTracker.nativeStop()");
} }
LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStop exit"); LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStop exit");
} }
@ -158,7 +158,7 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_
{ {
LOGD("nativeSetFaceSize caught unknown exception"); LOGD("nativeSetFaceSize caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception"); jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); jenv->ThrowNew(je, "Unknown exception in JNI code of DetectionBasedTracker.nativeSetFaceSize()");
} }
LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeSetFaceSize exit"); LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeSetFaceSize exit");
} }
@ -187,7 +187,7 @@ JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_
{ {
LOGD("nativeDetect caught unknown exception"); LOGD("nativeDetect caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception"); jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); jenv->ThrowNew(je, "Unknown exception in JNI code DetectionBasedTracker.nativeDetect()");
} }
LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDetect exit"); LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDetect exit");
} }