• Home
  • Raw
  • Download

Lines Matching refs:exception

92 static char* getExceptionSummary0(C_JNIEnv* env, jthrowable exception) {  in getExceptionSummary0()  argument
96 … scoped_local_ref<jclass> exceptionClass(env, (*env)->GetObjectClass(e, exception)); // can't fail in getExceptionSummary0()
117 (jstring) (*env)->CallObjectMethod(e, exception, getMessage)); in getExceptionSummary0()
136 static char* getExceptionSummary(C_JNIEnv* env, jthrowable exception) { in getExceptionSummary() argument
138 char* result = getExceptionSummary0(env, exception); in getExceptionSummary()
149 static char* getStackTrace(C_JNIEnv* env, jthrowable exception) { 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); in getStackTrace()
211 scoped_local_ref<jthrowable> exception(env, (*env)->ExceptionOccurred(e)); in jniThrowException() local
214 if (exception.get() != NULL) { in jniThrowException()
215 char* text = getExceptionSummary(env, exception.get()); in jniThrowException()
257 void jniLogException(C_JNIEnv* env, int priority, const char* tag, jthrowable exception) { in jniLogException() argument
261 if (exception == NULL) { in jniLogException()
262 exception = (*env)->ExceptionOccurred(e); in jniLogException()
263 if (exception == NULL) { in jniLogException()
268 currentException.reset(exception); in jniLogException()
271 char* buffer = getStackTrace(env, exception); in jniLogException()
274 buffer = getExceptionSummary(env, exception); in jniLogException()
281 (*env)->Throw(e, exception); // rethrow in jniLogException()