Lines Matching refs:exception
90 static bool getExceptionSummary(C_JNIEnv* env, jthrowable exception, std::string& result) { in getExceptionSummary() argument
94 … scoped_local_ref<jclass> exceptionClass(env, (*env)->GetObjectClass(e, exception)); // can't fail in getExceptionSummary()
119 (jstring) (*env)->CallObjectMethod(e, exception, getMessage)); in getExceptionSummary()
141 static bool getStackTrace(C_JNIEnv* env, jthrowable exception, std::string& result) { in getStackTrace() argument
173 … scoped_local_ref<jclass> exceptionClass(env, (*env)->GetObjectClass(e, exception)); // can't fail in getStackTrace()
176 (*env)->CallVoidMethod(e, exception, printStackTraceMethod, printWriter.get()); in getStackTrace()
204 scoped_local_ref<jthrowable> exception(env, (*env)->ExceptionOccurred(e)); in jniThrowException() local
207 if (exception.get() != NULL) { in jniThrowException()
209 getExceptionSummary(env, exception.get(), text); in jniThrowException()
250 static std::string jniGetStackTrace(C_JNIEnv* env, jthrowable exception) { in jniGetStackTrace() argument
254 if (exception == NULL) { in jniGetStackTrace()
255 exception = currentException.get(); in jniGetStackTrace()
256 if (exception == NULL) { in jniGetStackTrace()
266 if (!getStackTrace(env, exception, trace)) { in jniGetStackTrace()
268 getExceptionSummary(env, exception, trace); in jniGetStackTrace()
278 MODULE_API void jniLogException(C_JNIEnv* env, int priority, const char* tag, jthrowable exception)… in jniLogException() argument
279 std::string trace(jniGetStackTrace(env, exception)); in jniLogException()