Searched refs:exception (Results 1 – 2 of 2) sorted by relevance
/libnativehelper/ |
D | JNIHelp.cpp | 98 static bool getExceptionSummary(C_JNIEnv* env, jthrowable exception, std::string& result) { in getExceptionSummary() argument 102 … scoped_local_ref<jclass> exceptionClass(env, (*env)->GetObjectClass(e, exception)); // can't fail in getExceptionSummary() 127 (jstring) (*env)->CallObjectMethod(e, exception, getMessage)); in getExceptionSummary() 149 static bool getStackTrace(C_JNIEnv* env, jthrowable exception, std::string& result) { in getStackTrace() argument 181 … scoped_local_ref<jclass> exceptionClass(env, (*env)->GetObjectClass(e, exception)); // can't fail in getStackTrace() 184 (*env)->CallVoidMethod(e, exception, printStackTraceMethod, printWriter.get()); in getStackTrace() 212 scoped_local_ref<jthrowable> exception(env, (*env)->ExceptionOccurred(e)); in jniThrowException() local 215 if (exception.get() != NULL) { in jniThrowException() 217 getExceptionSummary(env, exception.get(), text); in jniThrowException() 258 static std::string jniGetStackTrace(C_JNIEnv* env, jthrowable exception) { in jniGetStackTrace() argument [all …]
|
/libnativehelper/include/nativehelper/ |
D | JNIHelp.h | 110 void jniLogException(C_JNIEnv* env, int priority, const char* tag, jthrowable exception); 171 inline void jniLogException(JNIEnv* env, int priority, const char* tag, jthrowable exception = NULL… 172 jniLogException(&env->functions, priority, tag, exception);
|