Searched refs:exceptionClass (Results 1 – 7 of 7) sorted by relevance
/libcore/luni/src/main/native/ |
D | IcuUtilities.cpp | 58 const char* exceptionClass = "java/lang/RuntimeException"; in maybeThrowIcuException() local 60 exceptionClass = "java/lang/IllegalArgumentException"; in maybeThrowIcuException() 62 exceptionClass = "java/lang/ArrayIndexOutOfBoundsException"; in maybeThrowIcuException() 64 exceptionClass = "java/lang/UnsupportedOperationException"; in maybeThrowIcuException() 66 exceptionClass = "java/lang/ArithmeticException"; in maybeThrowIcuException() 68 jniThrowExceptionFmt(env, exceptionClass, "%s failed: %s", function, u_errorName(error)); in maybeThrowIcuException()
|
D | java_util_regex_Pattern.cpp | 67 jclass exceptionClass = JniConstants::GetPatternSyntaxExceptionClass(env); in throwPatternSyntaxException() local 68 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset); in throwPatternSyntaxException()
|
D | libcore_io_Linux.cpp | 233 static void throwException(JNIEnv* env, jclass exceptionClass, jmethodID ctor3, jmethodID ctor2, in throwException() argument 250 exception = env->NewObject(exceptionClass, ctor3, detailMessage.get(), error, cause); in throwException() 252 exception = env->NewObject(exceptionClass, ctor2, detailMessage.get(), error); in throwException()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | LinuxFileSystemTestData.java | 77 public Class exceptionClass; field in LinuxFileSystemTestData.TestData 85 TestData(Class exceptionClass, String input, String... inputArray) { in TestData() argument 86 this.exceptionClass = exceptionClass; in TestData()
|
D | PathsTest.java | 49 assertEquals(exceptionTestCase.exceptionClass, expected.getClass()); in test_get_String() 69 assertEquals(exceptionTestCase.exceptionClass, expected.getClass()); in test_get_URI()
|
D | LinuxFileSystemTest.java | 122 Assert.assertEquals(exceptionTestCase.exceptionClass, expected.getClass()); in test_get()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | JSR166TestCase.java | 1371 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))
|