Lines Matching defs:exception
994 // assumption that there is no exception pending on entry. Thus, stash any pending exception.
1142 mirror::Throwable* exception = GetException(nullptr);
1143 LOG(FATAL) << "No pending exception expected: " << exception->Dump();
1150 mirror::Throwable* exception = GetException(nullptr);
1151 LOG(FATAL) << "Throwing new exception '" << msg << "' with unexpected pending exception: "
1152 << exception->Dump();
1260 // Get and clear the exception.
1261 ScopedLocalRef<jthrowable> exception(tlsPtr_.jni_env, tlsPtr_.jni_env->ExceptionOccurred());
1277 peer.get(), exception.get());
1279 // If the handler threw, clear that exception too.
1418 // We want to skip frames up to and including the exception's constructor.
1686 LOG(ERROR) << "No exception class " << PrettyDescriptor(exception_class_descriptor);
1695 Handle<mirror::Throwable> exception(
1698 // If we couldn't allocate the exception, throw the pre-allocated out of memory exception.
1699 if (exception.Get() == nullptr) {
1737 // Something is trying to throw an exception without a started runtime, which is the common
1738 // case in the compiler. We won't be able to invoke the constructor of the exception, so set
1739 // the exception fields directly.
1741 exception->SetDetailMessage(down_cast<mirror::String*>(DecodeJObject(msg_string.get())));
1744 exception->SetCause(down_cast<mirror::Throwable*>(DecodeJObject(cause.get())));
1751 exception->SetStackState(down_cast<mirror::Throwable*>(DecodeJObject(trace.get())));
1755 SetException(gc_safe_throw_location, exception.Get());
1769 InvokeWithJValues(soa, exception.Get(), soa.EncodeMethod(exception_init_method), jv_args);
1773 SetException(gc_safe_throw_location, exception.Get());
1822 DO_THREAD_OFFSET(ExceptionOffset<ptr_size>(), "exception")
1952 // Get exception from thread.
1954 mirror::Throwable* exception = GetException(&throw_location);
1955 CHECK(exception != nullptr);
1956 // Don't leave exception visible while we try to find the handler, which may cause class
1960 bool is_deoptimization = (exception == GetDeoptimizationException());
1965 exception_handler.FindCatch(throw_location, exception, is_exception_reported);
2194 if (tlsPtr_.exception != nullptr && tlsPtr_.exception != GetDeoptimizationException()) {
2195 visitor(reinterpret_cast<mirror::Object**>(&tlsPtr_.exception), arg,