Home
last modified time | relevance | path

Searched refs:exception (Results 1 – 2 of 2) sorted by relevance

/libnativehelper/
DJNIHelp.cpp90 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
[all …]
/libnativehelper/include/nativehelper/
DJNIHelp.h181 MODULE_API void jniLogException(C_JNIEnv* env, int priority, const char* tag, jthrowable exception);
271 inline void jniLogException(JNIEnv* env, int priority, const char* tag, jthrowable exception = NULL…
272 jniLogException(&env->functions, priority, tag, exception);