Lines Matching defs:exception
483 * Throwing an exception on failure is problematic, because JNI code
484 * may not be expecting an exception, and things sort of cascade. We
917 Object* exception = dvmGetException(self);
918 std::string exceptionClassName(dvmHumanReadableDescriptor(exception->clazz->descriptor));
970 /* ran out of memory? could throw exception instead */
1018 * an exception for abstract and interface classes, and not accepting
1331 * Take this exception and throw it.
1344 * Constructs an exception object from the specified class with the message
1356 * If an exception is being thrown, return the exception object. Otherwise,
1359 * TODO: if there is no pending exception, we should be able to skip the
1361 * the exception (in case it got moved by a compacting GC).
1365 Object* exception = dvmGetException(ts.self());
1366 jthrowable localException = (jthrowable) addLocalReference(ts.self(), exception);
1367 if (localException == NULL && exception != NULL) {
1370 * exception. We can't return "exception", because it's not a
1372 * there was no exception, even though it's pretty much raining
1375 ALOGW("JNI WARNING: addLocal/exception combo");
1381 * Print an exception and stack trace to stderr.
1385 Object* exception = dvmGetException(ts.self());
1386 if (exception != NULL) {
1389 ALOGI("Odd: ExceptionDescribe called, but no exception pending");
1394 * Clear the exception currently being thrown.
2191 * of this function has thrown an exception."
2539 * According to the 1.6 spec, it's legal to call here with an exception
2540 * pending. If this fails, we'll stomp the original exception.