Lines Matching defs:exception

99 // throwing the StackOverflow exception.
202 // The exception that was pending before deoptimization (or null if there was no pending
203 // exception).
236 mirror::Throwable* exception) {
241 exception,
247 mirror::Throwable** exception,
253 *exception = record->GetPendingException();
769 // We cannot keep the exception around, as we're deleting self. Try to be helpful and log it.
1492 // assumption that there is no exception pending on entry. Thus, stash any pending exception.
1643 CHECK(IsExceptionPending()) << "Pending exception expected.";
1656 mirror::Throwable* exception = GetException();
1657 LOG(FATAL) << "No pending exception expected: " << exception->Dump();
1664 mirror::Throwable* exception = GetException();
1665 LOG(FATAL) << "Throwing new exception '" << msg << "' with unexpected pending exception: "
1666 << exception->Dump();
1808 // Get and clear the exception.
1809 ScopedLocalRef<jthrowable> exception(tlsPtr_.jni_env, tlsPtr_.jni_env->ExceptionOccurred());
1825 peer.get(), exception.get());
1827 // If the handler threw, clear that exception too.
1980 // We want to skip frames up to and including the exception's constructor.
2144 bool Thread::IsExceptionThrownByCurrentMethod(mirror::Throwable* exception) const {
2147 return count_visitor.GetDepth() == exception->GetStackDepth();
2287 LOG(ERROR) << "No exception class " << PrettyDescriptor(exception_class_descriptor);
2297 Handle<mirror::Throwable> exception(
2300 // If we couldn't allocate the exception, throw the pre-allocated out of memory exception.
2301 if (exception.Get() == nullptr) {
2336 // Something is trying to throw an exception without a started runtime, which is the common
2337 // case in the compiler. We won't be able to invoke the constructor of the exception, so set
2338 // the exception fields directly.
2340 exception->SetDetailMessage(down_cast<mirror::String*>(DecodeJObject(msg_string.get())));
2343 exception->SetCause(down_cast<mirror::Throwable*>(DecodeJObject(cause.get())));
2350 exception->SetStackState(down_cast<mirror::Throwable*>(DecodeJObject(trace.get())));
2352 SetException(exception.Get());
2365 ScopedLocalRef<jobject> ref(soa.Env(), soa.AddLocalReference<jobject>(exception.Get()));
2368 SetException(exception.Get());
2415 DO_THREAD_OFFSET(ExceptionOffset<ptr_size>(), "exception")
2578 // Get exception from thread.
2579 mirror::Throwable* exception = GetException();
2580 CHECK(exception != nullptr);
2581 bool is_deoptimization = (exception == GetDeoptimizationException());
2583 // This is a real exception: let the instrumentation know about it.
2586 IsExceptionThrownByCurrentMethod(exception)) {
2587 // Instrumentation may cause GC so keep the exception object safe.
2589 HandleWrapper<mirror::Throwable> h_exception(hs.NewHandleWrapper(&exception));
2590 instrumentation->ExceptionCaughtEvent(this, exception);
2593 // Note: we do this *after* reporting the exception to instrumentation in case it
2595 // new events (single-step, breakpoint, ...) when the exception is reported.
2598 // Save the exception into the deoptimization context so it can be restored
2601 JValue(), /*is_reference */ false, /* from_code */ false, exception);
2604 // Don't leave exception visible while we try to find the handler, which may cause class
2611 exception_handler.FindCatch(exception);
2826 if (tlsPtr_.exception != nullptr && tlsPtr_.exception != GetDeoptimizationException()) {
2827 visitor->VisitRoot(reinterpret_cast<mirror::Object**>(&tlsPtr_.exception),
3026 // Restore the exception that was pending before deoptimization then interpret the
3037 tlsPtr_.exception = new_exception;