Home
last modified time | relevance | path

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

/libcore/luni/src/main/native/
DIcuUtilities.cpp29 const char* exceptionClass = "java/lang/RuntimeException"; in maybeThrowIcuException() local
31 exceptionClass = "java/lang/IllegalArgumentException"; in maybeThrowIcuException()
33 exceptionClass = "java/lang/ArrayIndexOutOfBoundsException"; in maybeThrowIcuException()
35 exceptionClass = "java/lang/UnsupportedOperationException"; in maybeThrowIcuException()
37 exceptionClass = "java/lang/ArithmeticException"; in maybeThrowIcuException()
39 jniThrowExceptionFmt(env, exceptionClass, "%s failed: %s", function, u_errorName(error)); in maybeThrowIcuException()
Dlibcore_io_Linux.cpp239 static void throwException(JNIEnv* env, jclass exceptionClass, jmethodID ctor3, jmethodID ctor2, in throwException() argument
256 exception = env->NewObject(exceptionClass, ctor3, detailMessage.get(), error, cause); in throwException()
258 exception = env->NewObject(exceptionClass, ctor2, detailMessage.get(), error); in throwException()
/libcore/luni/src/test/java/libcore/java/nio/file/
DLinuxFileSystemTestData.java77 public Class exceptionClass; field in LinuxFileSystemTestData.TestData
85 TestData(Class exceptionClass, String input, String... inputArray) { in TestData() argument
86 this.exceptionClass = exceptionClass; in TestData()
DPathsTest.java49 assertEquals(exceptionTestCase.exceptionClass, expected.getClass()); in test_get_String()
69 assertEquals(exceptionTestCase.exceptionClass, expected.getClass()); in test_get_URI()
DLinuxFileSystemTest.java174 Assert.assertEquals(exceptionTestCase.exceptionClass, expected.getClass()); in test_get()
/libcore/ojluni/src/test/java/lang/invoke/
DArrayConstructorTest.java69 …public static void testArrayConstructorNegative(Class<?> clazz, Class<?> exceptionClass, String me… in testArrayConstructorNegative() argument
74 assertEquals(exceptionClass, e.getClass()); in testArrayConstructorNegative()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java1371 final Class<?> exceptionClass;
1373 <T extends Throwable> RunnableShouldThrow(Class<T> exceptionClass) {
1374 this.exceptionClass = exceptionClass;
1380 threadShouldThrow(exceptionClass.getSimpleName());
1382 if (! exceptionClass.isInstance(t))
1391 final Class<?> exceptionClass;
1393 <T extends Throwable> ThreadShouldThrow(Class<T> exceptionClass) {
1394 this.exceptionClass = exceptionClass;
1400 threadShouldThrow(exceptionClass.getSimpleName());
1402 if (! exceptionClass.isInstance(t))
/libcore/ojluni/src/test/java/util/concurrent/tck/
DJSR166TestCase.java1643 final Class<?> exceptionClass;
1645 <T extends Throwable> RunnableShouldThrow(Class<T> exceptionClass) {
1646 this.exceptionClass = exceptionClass;
1652 threadShouldThrow(exceptionClass.getSimpleName());
1654 if (! exceptionClass.isInstance(t))
1663 final Class<?> exceptionClass;
1665 <T extends Throwable> ThreadShouldThrow(Class<T> exceptionClass) {
1666 this.exceptionClass = exceptionClass;
1672 threadShouldThrow(exceptionClass.getSimpleName());
1674 if (! exceptionClass.isInstance(t))