Lines Matching defs:exception

24  * Create a Throwable and throw an exception in the current thread (where
25 * "throwing" just means "set the thread's exception pointer").
29 * If we have a bad exception hierarchy -- something in Throwable.<init>
30 * is missing -- then every attempt to throw an exception will result
31 * in another exception. Exceptions are generally allowed to "chain"
90 * Return the exception being thrown in the current thread, or NULL if
91 * no exception is pending.
94 return self->exception;
98 * Set the exception being thrown in the current thread.
100 INLINE void dvmSetException(Thread* self, Object* exception)
102 assert(exception != NULL);
103 self->exception = exception;
107 * Clear the pending exception.
114 self->exception = NULL;
118 * Clear the pending exception. Used by the optimization and verification
120 * death-spin if the "class not found" exception can't be found.
125 * Returns "true" if an exception is pending. Use this if you have a
129 return (self->exception != NULL);
133 * Returns "true" if this is a "checked" exception, i.e. it's a subclass
136 bool dvmIsCheckedException(const Object* exception);
139 * Wrap the now-pending exception in a different exception.
141 * If something fails, an (unchecked) exception related to that failure
147 * Get the "cause" field from an exception.
151 Object* dvmGetExceptionCause(const Object* exception);
154 * Print the exception stack trace on stderr. Calls the exception's
160 * Print the exception stack trace to the log file. The exception stack
166 * Search for a catch block that matches "exception".
176 extern "C" int dvmFindCatchBlock(Thread* self, int relPc, Object* exception,
180 * Support for saving exception stack traces and converting them to
284 * Throw the VM-spec-mandated error when an exception is thrown during
286 * wraps the current thread's pending exception.