Home
last modified time | relevance | path

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

/art/runtime/
Dreflection.cc94 jclass exception_class = soa.Env()->FindClass("java/lang/reflect/InvocationTargetException"); in InvokeMethod() local
95 jmethodID mid = soa.Env()->GetMethodID(exception_class, "<init>", "(Ljava/lang/Throwable;)V"); in InvokeMethod()
96 jobject exception_instance = soa.Env()->NewObject(exception_class, mid, th); in InvokeMethod()
Djni_internal_test.cc791 #define EXPECT_EXCEPTION(exception_class) \ argument
797 EXPECT_TRUE(env_->IsInstanceOf(exception, exception_class)); \
1808 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
1809 ASSERT_TRUE(exception_class != NULL); in TEST_F()
1810 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F()
1823 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
1824 ASSERT_TRUE(exception_class != NULL); in TEST_F()
1828 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, "hello world")); in TEST_F()
1832 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class)); in TEST_F()
1834 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, NULL)); in TEST_F()
[all …]
Djni_internal.h62 int ThrowNewException(JNIEnv* env, jclass exception_class, const char* msg, jobject cause);
Dthread.cc1508 exception_class(this, runtime->GetClassLinker()->FindClass(exception_class_descriptor, cl)); in ThrowNewWrappedException() local
1509 if (UNLIKELY(exception_class.get() == NULL)) { in ThrowNewWrappedException()
1515 if (UNLIKELY(!runtime->GetClassLinker()->EnsureInitialized(exception_class.get(), true, true))) { in ThrowNewWrappedException()
1519 DCHECK(!runtime->IsStarted() || exception_class->IsThrowableClass()); in ThrowNewWrappedException()
1521 down_cast<mirror::Throwable*>(exception_class->AllocObject(this))); in ThrowNewWrappedException()
1546 exception_class->FindDeclaredDirectMethod("<init>", signature); in ThrowNewWrappedException()
Djni_internal.cc360 int ThrowNewException(JNIEnv* env, jclass exception_class, const char* msg, jobject cause) in ThrowNewException() argument
384 jmethodID mid = env->GetMethodID(exception_class, "<init>", signature); in ThrowNewException()
388 << PrettyClass(soa.Decode<Class*>(exception_class)); in ThrowNewException()
392 …rowable> exception(env, reinterpret_cast<jthrowable>(env->NewObjectA(exception_class, mid, args))); in ThrowNewException()
785 ScopedLocalRef<jclass> exception_class(env, env->GetObjectClass(exception.get())); in ExceptionDescribe() local
786 jmethodID mid = env->GetMethodID(exception_class.get(), "printStackTrace", "()V"); in ExceptionDescribe()
Dclass_linker_test.cc49 …mirror::Class* exception_class = class_linker_->FindSystemClass("Ljava/lang/NoClassDefFoundError;"… in AssertNonExistentClass() local
50 EXPECT_TRUE(exception->InstanceOf(exception_class)); in AssertNonExistentClass()
/art/runtime/mirror/
Dclass.cc96 Class* exception_class = old_exception->GetClass(); in SetStatus() local
97 if (!eiie_class->IsAssignableFrom(exception_class)) { in SetStatus()
98 SetVerifyErrorClass(exception_class); in SetStatus()
/art/runtime/entrypoints/
Dentrypoint_utils.cc392 mirror::Class* exception_class = exception->GetClass(); in InvokeProxyInvocationHandler() local
396 declares_exception = declared_exception->IsAssignableFrom(exception_class); in InvokeProxyInvocationHandler()