Home
last modified time | relevance | path

Searched refs:exception_class (Results 1 – 9 of 9) sorted by relevance

/art/runtime/
Djni_internal_test.cc55 void ExpectException(jclass exception_class) { in ExpectException() argument
60 EXPECT_TRUE(env_->IsInstanceOf(exception, exception_class)); in ExpectException()
1554 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
1555 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
1556 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F()
1569 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
1570 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
1574 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, "hello world")); in TEST_F()
1578 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class)); in TEST_F()
1580 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, nullptr)); in TEST_F()
[all …]
Djni_internal.h57 int ThrowNewException(JNIEnv* env, jclass exception_class, const char* msg, jobject cause);
Dreflection.cc592 jclass exception_class = soa.Env()->FindClass("java/lang/reflect/InvocationTargetException"); in InvokeMethod() local
593 jmethodID mid = soa.Env()->GetMethodID(exception_class, "<init>", "(Ljava/lang/Throwable;)V"); in InvokeMethod()
594 jobject exception_instance = soa.Env()->NewObject(exception_class, mid, th); in InvokeMethod()
Dthread.cc1681 Handle<mirror::Class> exception_class( in ThrowNewWrappedException() local
1684 if (UNLIKELY(exception_class.Get() == nullptr)) { in ThrowNewWrappedException()
1690 if (UNLIKELY(!runtime->GetClassLinker()->EnsureInitialized(exception_class, true, true))) { in ThrowNewWrappedException()
1694 DCHECK(!runtime->IsStarted() || exception_class->IsThrowableClass()); in ThrowNewWrappedException()
1696 hs.NewHandle(down_cast<mirror::Throwable*>(exception_class->AllocObject(this)))); in ThrowNewWrappedException()
1731 exception_class->FindDeclaredDirectMethod("<init>", signature); in ThrowNewWrappedException()
Djni_internal.cc264 int ThrowNewException(JNIEnv* env, jclass exception_class, const char* msg, jobject cause) in ThrowNewException() argument
288 jmethodID mid = env->GetMethodID(exception_class, "<init>", signature); in ThrowNewException()
292 << PrettyClass(soa.Decode<mirror::Class*>(exception_class)); in ThrowNewException()
297 env, reinterpret_cast<jthrowable>(env->NewObjectA(exception_class, mid, args))); in ThrowNewException()
742 ScopedLocalRef<jclass> exception_class(env, env->GetObjectClass(exception.get())); in ExceptionDescribe() local
743 jmethodID mid = env->GetMethodID(exception_class.get(), "printStackTrace", "()V"); in ExceptionDescribe()
Dclass_linker_test.cc54 mirror::Class* exception_class = in AssertNonExistentClass() local
56 EXPECT_TRUE(exception->InstanceOf(exception_class)); in AssertNonExistentClass()
/art/runtime/entrypoints/
Dentrypoint_utils.cc330 mirror::Class* exception_class = exception->GetClass(); in InvokeProxyInvocationHandler() local
334 declares_exception = declared_exception->IsAssignableFrom(exception_class); in InvokeProxyInvocationHandler()
/art/runtime/interpreter/
Dinterpreter_common.cc412 Handle<mirror::Class> exception_class(hs.NewHandle((*exception_)->GetClass())); in VisitFrame() local
414 found_dex_pc = mirror::ArtMethod::FindCatchBlock(h_method, exception_class, dex_pc, in VisitFrame()
468 Handle<mirror::Class> exception_class(hs.NewHandle(exception->GetClass())); in FindNextInstructionFollowingException() local
470 found_dex_pc = mirror::ArtMethod::FindCatchBlock(h_method, exception_class, dex_pc, in FindNextInstructionFollowingException()
/art/runtime/mirror/
Dclass.cc106 Class* exception_class = old_exception->GetClass(); in SetStatus() local
107 if (!eiie_class->IsAssignableFrom(exception_class)) { in SetStatus()
108 SetVerifyErrorClass(exception_class); in SetStatus()