Lines Matching refs:thrown
80 static bool GetExceptionSummary(JNIEnv* env, jthrowable thrown, struct ExpandableString* dst) { in GetExceptionSummary() argument
82 jclass exceptionClass = (*env)->GetObjectClass(env, thrown); // Always succeeds in GetExceptionSummary()
106 jstring message = (jstring) (*env)->CallObjectMethod(env, thrown, getMessage); in GetExceptionSummary()
152 static bool GetStackTrace(JNIEnv* env, jthrowable thrown, struct ExpandableString* dst) { in GetStackTrace() argument
172 (*env)->CallVoidMethod(env, thrown, printStackTrace, pw); in GetStackTrace()
190 static void GetStackTraceOrSummary(JNIEnv* env, jthrowable thrown, struct ExpandableString* dst) { in GetStackTraceOrSummary() argument
202 if (thrown == NULL) { in GetStackTraceOrSummary()
207 thrown = pendingException; in GetStackTraceOrSummary()
210 if (!GetStackTrace(env, thrown, dst)) { in GetStackTraceOrSummary()
213 GetExceptionSummary(env, thrown, dst); in GetStackTraceOrSummary()
337 jthrowable thrown = (*env)->ExceptionOccurred(env); in jniRegisterNativeMethods() local
338 if (thrown != NULL) { in jniRegisterNativeMethods()
341 if (GetExceptionSummary(env, thrown, &summary)) { in jniRegisterNativeMethods()
345 (*env)->DeleteLocalRef(env, thrown); in jniRegisterNativeMethods()
351 void jniLogException(JNIEnv* env, int priority, const char* tag, jthrowable thrown) { in jniLogException() argument
354 GetStackTraceOrSummary(env, thrown, &summary); in jniLogException()