X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fnotification%2Fandroid%2Fnotification-service%2Fsrc%2Fmain%2Fjni%2Fcommon%2FJniNotificationCommon.cpp;h=3be293593f2b94dea159ceea243da09486a6a0a1;hb=7f00f942c39b7bc27c7eeecf213a239c3fe4173c;hp=5f8bea98b87daf845c0040c8ad7a52025b391a7a;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/notification/android/notification-service/src/main/jni/common/JniNotificationCommon.cpp b/service/notification/android/notification-service/src/main/jni/common/JniNotificationCommon.cpp index 5f8bea9..3be2935 100755 --- a/service/notification/android/notification-service/src/main/jni/common/JniNotificationCommon.cpp +++ b/service/notification/android/notification-service/src/main/jni/common/JniNotificationCommon.cpp @@ -48,6 +48,8 @@ static const char *NSResultToChar(const int nsresult) return "JNI_NO_NATIVE_POINTER"; case JNI_INVALID_VALUE: return "JNI_INVALID_VALUE"; + case NATIVE_EXCEPTION: + return "NATIVE_EXCEPTION"; default: return ""; } @@ -57,6 +59,7 @@ static const char *NSResultToChar(const int nsresult) jobject getNSException(JNIEnv *env, const char *file, const char *functionName, const int line, const int code, const char *message) { + NS_LOGE ("Failed : %s" , message ); const char *codeChar = NSResultToChar(code); if (codeChar[0] == '\0') { @@ -93,7 +96,7 @@ int NSExceptionInit(JNIEnv *env) { if (!env) { - LOGE ("JNIEnv is null"); + NS_LOGE ("JNIEnv is null"); return JNI_ERR; } @@ -102,7 +105,7 @@ int NSExceptionInit(JNIEnv *env) "org/iotivity/service/ns/common/NSException"); if (!localNSException) { - LOGE ("Failed to get local NSException"); + NS_LOGE ("Failed to get local NSException"); return JNI_ERR; } g_cls_NSException = (jclass)env->NewGlobalRef(localNSException); @@ -112,7 +115,7 @@ int NSExceptionInit(JNIEnv *env) "", "(Ljava/lang/String;Ljava/lang/String;)V"); if (!g_mid_NSException_ctor) { - LOGE ("Failed to Get MethodID"); + NS_LOGE ("Failed to Get MethodID"); return JNI_ERR; } @@ -121,7 +124,7 @@ int NSExceptionInit(JNIEnv *env) "(Ljava/lang/String;Ljava/lang/String;I)V"); if (!g_mid_NSException_setNativeExceptionLocation) { - LOGE ("Failed to Get MethodID"); + NS_LOGE ("Failed to Get MethodID"); return JNI_ERR; }