Searched refs:exceptionClass (Results 1 – 4 of 4) sorted by relevance
/libcore/luni/src/main/native/ |
D | IcuUtilities.cpp | 57 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()
|
D | java_util_regex_Pattern.cpp | 69 jclass exceptionClass = JniConstants::patternSyntaxExceptionClass; in throwPatternSyntaxException() local 70 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset); in throwPatternSyntaxException()
|
D | libcore_io_Posix.cpp | 153 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/ |
D | JSR166TestCase.java | 686 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()
|