Home
last modified time | relevance | path

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

/libcore/luni/src/main/native/
DIcuUtilities.cpp57 const char* exceptionClass = "java/lang/RuntimeException"; in maybeThrowIcuException() local
59 exceptionClass = "java/lang/IllegalArgumentException"; in maybeThrowIcuException()
61 exceptionClass = "java/lang/ArrayIndexOutOfBoundsException"; in maybeThrowIcuException()
63 exceptionClass = "java/lang/UnsupportedOperationException"; in maybeThrowIcuException()
65 exceptionClass = "java/lang/ArithmeticException"; in maybeThrowIcuException()
67 jniThrowExceptionFmt(env, exceptionClass, "%s failed: %s", function, u_errorName(error)); in maybeThrowIcuException()
Djava_util_regex_Pattern.cpp69 jclass exceptionClass = JniConstants::patternSyntaxExceptionClass; in throwPatternSyntaxException() local
70 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset); in throwPatternSyntaxException()
Dlibcore_io_Posix.cpp153 static void throwException(JNIEnv* env, jclass exceptionClass, jmethodID ctor3, jmethodID ctor2, in throwException() argument
170 exception = env->NewObject(exceptionClass, ctor3, detailMessage.get(), error, cause); in throwException()
172 exception = env->NewObject(exceptionClass, ctor2, detailMessage.get(), error); in throwException()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java686 final Class<?> exceptionClass; field in JSR166TestCase.RunnableShouldThrow
688 <T extends Throwable> RunnableShouldThrow(Class<T> exceptionClass) { in RunnableShouldThrow() argument
689 this.exceptionClass = exceptionClass; in RunnableShouldThrow()
695 threadShouldThrow(exceptionClass.getSimpleName()); in run()
697 if (! exceptionClass.isInstance(t)) in run()
706 final Class<?> exceptionClass; field in JSR166TestCase.ThreadShouldThrow
708 <T extends Throwable> ThreadShouldThrow(Class<T> exceptionClass) { in ThreadShouldThrow() argument
709 this.exceptionClass = exceptionClass; in ThreadShouldThrow()
715 threadShouldThrow(exceptionClass.getSimpleName()); in run()
717 if (! exceptionClass.isInstance(t)) in run()