src/core/android/SDL_android.cpp
changeset 5860 b89f7f3bc9be
parent 5650 640c67302f8e
child 5982 f324bd81b52c
equal deleted inserted replaced
5859:db254478ed2d 5860:b89f7f3bc9be
   275         mid = mEnv->GetMethodID(classClass, "getName", "()Ljava/lang/String;");
   275         mid = mEnv->GetMethodID(classClass, "getName", "()Ljava/lang/String;");
   276         jstring exceptionName = (jstring)mEnv->CallObjectMethod(exceptionClass, mid);
   276         jstring exceptionName = (jstring)mEnv->CallObjectMethod(exceptionClass, mid);
   277         const char* exceptionNameUTF8 = mEnv->GetStringUTFChars(exceptionName, 0);
   277         const char* exceptionNameUTF8 = mEnv->GetStringUTFChars(exceptionName, 0);
   278 
   278 
   279         mid = mEnv->GetMethodID(exceptionClass, "getMessage", "()Ljava/lang/String;");
   279         mid = mEnv->GetMethodID(exceptionClass, "getMessage", "()Ljava/lang/String;");
   280         jstring exceptionMessage = (jstring)mEnv->CallObjectMethod(exceptionClass, mid);
   280         jstring exceptionMessage = (jstring)mEnv->CallObjectMethod(exception, mid);
   281 
   281 
   282         if (exceptionMessage != NULL) {
   282         if (exceptionMessage != NULL) {
   283             const char* exceptionMessageUTF8 = mEnv->GetStringUTFChars(
   283             const char* exceptionMessageUTF8 = mEnv->GetStringUTFChars(
   284                     exceptionMessage, 0);
   284                     exceptionMessage, 0);
   285             SDL_SetError("%s: %s", exceptionNameUTF8, exceptionMessageUTF8);
   285             SDL_SetError("%s: %s", exceptionNameUTF8, exceptionMessageUTF8);