• Home
  • Raw
  • Download

Lines Matching refs:exception

99 static bool initException(Object* exception, const char* msg, Object* cause,
115 Object* exception; in dvmThrowChainedException() local
138 exception = dvmAllocObject(excepClass, ALLOC_DEFAULT); in dvmThrowChainedException()
139 if (exception == NULL) { in dvmThrowChainedException()
163 assert(excepClass == exception->clazz); in dvmThrowChainedException()
164 if (!initException(exception, msg, cause, self)) { in dvmThrowChainedException()
175 self->exception = gDvm.internalErrorObj; in dvmThrowChainedException()
181 self->exception = exception; in dvmThrowChainedException()
184 dvmReleaseTrackedAlloc(exception, self); in dvmThrowChainedException()
247 static bool initException(Object* exception, const char* msg, Object* cause, in initException() argument
258 ClassObject* excepClass = exception->clazz; in initException()
264 assert(self->exception == NULL); in initException()
386 dvmCallMethod(self, initMethod, exception, &unused); in initException()
390 dvmCallMethod(self, initMethod, exception, &unused, msgStr); in initException()
395 dvmCallMethod(self, initMethod, exception, &unused, cause); in initException()
400 dvmCallMethod(self, initMethod, exception, &unused, msgStr, cause); in initException()
411 if (self->exception != NULL) { in initException()
413 self->exception->clazz->descriptor, exception->clazz->descriptor); in initException()
427 dvmCallMethod(self, initCause, exception, &unused, cause); in initException()
428 if (self->exception != NULL) { in initException()
434 self->exception->clazz->descriptor, in initException()
435 exception->clazz->descriptor); in initException()
462 self->exception = NULL; in dvmClearOptException()
469 bool dvmIsCheckedException(const Object* exception) in dvmIsCheckedException() argument
471 if (dvmInstanceof(exception->clazz, gDvm.exError) || in dvmIsCheckedException()
472 dvmInstanceof(exception->clazz, gDvm.exRuntimeException)) in dvmIsCheckedException()
539 Object* dvmGetExceptionCause(const Object* exception) in dvmGetExceptionCause() argument
541 if (!dvmInstanceof(exception->clazz, gDvm.exThrowable)) { in dvmGetExceptionCause()
543 exception->clazz->descriptor); in dvmGetExceptionCause()
547 dvmGetFieldObject(exception, gDvm.offJavaLangThrowable_cause); in dvmGetExceptionCause()
548 if (cause == exception) in dvmGetExceptionCause()
567 Object* exception; in dvmPrintExceptionStackTrace() local
570 exception = self->exception; in dvmPrintExceptionStackTrace()
571 if (exception == NULL) in dvmPrintExceptionStackTrace()
574 dvmAddTrackedAlloc(exception, self); in dvmPrintExceptionStackTrace()
575 self->exception = NULL; in dvmPrintExceptionStackTrace()
576 printMethod = dvmFindVirtualMethodHierByDescriptor(exception->clazz, in dvmPrintExceptionStackTrace()
580 dvmCallMethod(self, printMethod, exception, &unused); in dvmPrintExceptionStackTrace()
583 exception->clazz->descriptor); in dvmPrintExceptionStackTrace()
586 if (self->exception != NULL) { in dvmPrintExceptionStackTrace()
588 self->exception->clazz->descriptor); in dvmPrintExceptionStackTrace()
591 self->exception = exception; in dvmPrintExceptionStackTrace()
592 dvmReleaseTrackedAlloc(exception, self); in dvmPrintExceptionStackTrace()
677 (self->exception != NULL) ? in findCatchInMethod()
678 self->exception->clazz->descriptor : "(none)"); in findCatchInMethod()
715 int dvmFindCatchBlock(Thread* self, int relPc, Object* exception, in dvmFindCatchBlock() argument
726 exception->clazz); in dvmFindCatchBlock()
798 self->exception = NULL; in dvmFindCatchBlock()
1072 static StringObject* getExceptionMessage(Object* exception) in getExceptionMessage() argument
1089 getMessageMethod = dvmFindVirtualMethodHierByDescriptor(exception->clazz, in getExceptionMessage()
1096 dvmCallMethod(self, getMessageMethod, exception, &result); in getExceptionMessage()
1104 exception->clazz->descriptor); in getExceptionMessage()
1123 static void logStackTraceOf(Object* exception) { in logStackTraceOf() argument
1124 std::string className(dvmHumanReadableDescriptor(exception->clazz->descriptor)); in logStackTraceOf()
1125 StringObject* messageStr = getExceptionMessage(exception); in logStackTraceOf()
1143 const ArrayObject* stackData = (const ArrayObject*) dvmGetFieldObject(exception, in logStackTraceOf()
1164 Object* exception = dvmThreadSelf()->exception; in dvmLogExceptionStackTrace() local
1167 if (exception == NULL) { in dvmLogExceptionStackTrace()
1173 logStackTraceOf(exception); in dvmLogExceptionStackTrace()
1174 cause = dvmGetExceptionCause(exception); in dvmLogExceptionStackTrace()
1179 exception = cause; in dvmLogExceptionStackTrace()
1295 Object* exception = dvmGetException(self); in dvmThrowExceptionInInitializerError() local
1297 dvmAddTrackedAlloc(exception, self); in dvmThrowExceptionInInitializerError()
1301 NULL, exception); in dvmThrowExceptionInInitializerError()
1302 dvmReleaseTrackedAlloc(exception, self); in dvmThrowExceptionInInitializerError()