Lines Matching refs:exception
115 static bool getExceptionSummary(C_JNIEnv* env, jthrowable exception, std::string& result) { in getExceptionSummary() argument
119 … scoped_local_ref<jclass> exceptionClass(env, (*env)->GetObjectClass(e, exception)); // can't fail in getExceptionSummary()
144 (jstring) (*env)->CallObjectMethod(e, exception, getMessage)); in getExceptionSummary()
166 static bool getStackTrace(C_JNIEnv* env, jthrowable exception, std::string& result) { in getStackTrace() argument
198 … scoped_local_ref<jclass> exceptionClass(env, (*env)->GetObjectClass(e, exception)); // can't fail in getStackTrace()
201 (*env)->CallVoidMethod(e, exception, printStackTraceMethod, printWriter.get()); in getStackTrace()
229 scoped_local_ref<jthrowable> exception(env, (*env)->ExceptionOccurred(e)); in jniThrowException() local
232 if (exception.get() != NULL) { in jniThrowException()
234 getExceptionSummary(env, exception.get(), text); in jniThrowException()
275 static std::string jniGetStackTrace(C_JNIEnv* env, jthrowable exception) { in jniGetStackTrace() argument
279 if (exception == NULL) { in jniGetStackTrace()
280 exception = currentException.get(); in jniGetStackTrace()
281 if (exception == NULL) { in jniGetStackTrace()
291 if (!getStackTrace(env, exception, trace)) { in jniGetStackTrace()
293 getExceptionSummary(env, exception, trace); in jniGetStackTrace()
303 void jniLogException(C_JNIEnv* env, int priority, const char* tag, jthrowable exception) { in jniLogException() argument
304 std::string trace(jniGetStackTrace(env, exception)); in jniLogException()