Lines Matching defs:cause

46 location before handling any opcode that could cause the VM to throw
84 This is a risk for anything that could cause <clinit> to execute, e.g.
86 a field that doesn't exist in a class that does exist might cause this.
99 static bool initException(Object* exception, const char* msg, Object* cause,
112 Object* cause)
134 "failed to init original exception class", cause);
164 if (!initException(exception, msg, cause, self)) {
189 Object* cause)
193 dvmThrowChainedException(exceptionClass, message, cause);
240 * Either or both of "msg" and "cause" may be null.
247 static bool initException(Object* exception, const char* msg, Object* cause,
279 if (cause != NULL) {
280 if (!dvmInstanceof(cause->clazz, gDvm.exThrowable)) {
281 ALOGE("Tried to init exception with cause '%s'",
282 cause->clazz->descriptor);
291 * (3) Throwable(String message, Throwable cause) (added in 1.4)
292 * (4) Throwable(Throwable cause) (added in 1.4)
297 * The general "cause" mechanism was added in 1.4. Some classes,
301 * Exceptions may be picky about how their "cause" field is initialized.
303 * initialize its "cause" field to null. Doing so prevents future
306 * So, if "cause" is not NULL, we need to look for a constructor that
324 if (cause == NULL) {
395 dvmCallMethod(self, initMethod, exception, &unused, cause);
400 dvmCallMethod(self, initMethod, exception, &unused, msgStr, cause);
419 * able to find a cause-setting constructor, set the "cause" field
427 dvmCallMethod(self, initCause, exception, &unused, cause);
533 * Get the "cause" field from an exception.
535 * The Throwable class initializes the "cause" field to "this" to
542 ALOGE("Tried to get cause from object of type '%s'",
546 Object* cause =
548 if (cause == exception)
551 return cause;
709 * blocks could cause an exception. The caller should clear the exception
795 * The class resolution in findCatchInMethod() could cause an exception.
845 * the right thing if we create an exception object or cause a VM
1165 Object* cause;
1174 cause = dvmGetExceptionCause(exception);
1175 if (cause == NULL) {
1179 exception = cause;
1261 void dvmThrowChainedClassNotFoundException(const char* name, Object* cause) {
1268 dvmThrowChainedException(gDvm.exClassNotFoundException, name, cause);
1380 Object* cause) {
1382 gDvm.exNoClassDefFoundError, descriptor, cause);