Home
last modified time | relevance | path

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

/libcore/luni/src/main/native/
DIcuUtilities.cpp58 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()
Djava_util_regex_Pattern.cpp67 jclass exceptionClass = JniConstants::GetPatternSyntaxExceptionClass(env); in throwPatternSyntaxException() local
68 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset); in throwPatternSyntaxException()
Dlibcore_io_Linux.cpp233 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/
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.java122 Assert.assertEquals(exceptionTestCase.exceptionClass, expected.getClass()); in test_get()
/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))