Home
last modified time | relevance | path

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

12

/external/guava/android/guava/src/com/google/common/util/concurrent/
DFuturesGetChecked.java44 static <V, X extends Exception> V getChecked(Future<V> future, Class<X> exceptionClass) throws X { in getChecked() argument
45 return getChecked(bestGetCheckedTypeValidator(), future, exceptionClass); in getChecked()
52 GetCheckedTypeValidator validator, Future<V> future, Class<X> exceptionClass) throws X { in getChecked() argument
53 validator.validateClass(exceptionClass); in getChecked()
58 throw newWithCause(exceptionClass, e); in getChecked()
60 wrapAndThrowExceptionOrError(e.getCause(), exceptionClass); in getChecked()
68 Future<V> future, Class<X> exceptionClass, long timeout, TimeUnit unit) throws X { in getChecked() argument
70 bestGetCheckedTypeValidator().validateClass(exceptionClass); in getChecked()
75 throw newWithCause(exceptionClass, e); in getChecked()
77 throw newWithCause(exceptionClass, e); in getChecked()
[all …]
DFutures.java1138 public static <V, X extends Exception> V getChecked(Future<V> future, Class<X> exceptionClass)
1140 return FuturesGetChecked.getChecked(future, exceptionClass);
1191 Future<V> future, Class<X> exceptionClass, long timeout, TimeUnit unit) throws X {
1192 return FuturesGetChecked.getChecked(future, exceptionClass, timeout, unit);
/external/guava/guava/src/com/google/common/util/concurrent/
DFuturesGetChecked.java44 static <V, X extends Exception> V getChecked(Future<V> future, Class<X> exceptionClass) throws X { in getChecked() argument
45 return getChecked(bestGetCheckedTypeValidator(), future, exceptionClass); in getChecked()
52 GetCheckedTypeValidator validator, Future<V> future, Class<X> exceptionClass) throws X { in getChecked() argument
53 validator.validateClass(exceptionClass); in getChecked()
58 throw newWithCause(exceptionClass, e); in getChecked()
60 wrapAndThrowExceptionOrError(e.getCause(), exceptionClass); in getChecked()
68 Future<V> future, Class<X> exceptionClass, long timeout, TimeUnit unit) throws X { in getChecked() argument
70 bestGetCheckedTypeValidator().validateClass(exceptionClass); in getChecked()
75 throw newWithCause(exceptionClass, e); in getChecked()
77 throw newWithCause(exceptionClass, e); in getChecked()
[all …]
DFutures.java1171 public static <V, X extends Exception> V getChecked(Future<V> future, Class<X> exceptionClass)
1173 return FuturesGetChecked.getChecked(future, exceptionClass);
1223 Future<V> future, Class<X> exceptionClass, Duration timeout) throws X {
1224 return getChecked(future, exceptionClass, toNanosSaturated(timeout), TimeUnit.NANOSECONDS);
1275 Future<V> future, Class<X> exceptionClass, long timeout, TimeUnit unit) throws X {
1276 return FuturesGetChecked.getChecked(future, exceptionClass, timeout, unit);
/external/icu/android_icu4j/libcore_bridge/src/native/
DIcuUtilities.cpp30 const char* exceptionClass = "java/lang/RuntimeException"; in maybeThrowIcuException() local
32 exceptionClass = "java/lang/IllegalArgumentException"; in maybeThrowIcuException()
34 exceptionClass = "java/lang/ArrayIndexOutOfBoundsException"; in maybeThrowIcuException()
36 exceptionClass = "java/lang/UnsupportedOperationException"; in maybeThrowIcuException()
38 exceptionClass = "java/lang/ArithmeticException"; in maybeThrowIcuException()
40 jniThrowExceptionFmt(env, exceptionClass, "%s failed: %s", function, u_errorName(error)); in maybeThrowIcuException()
Dcom_android_icu_util_regex_PatternNative.cpp69 jclass exceptionClass = JniConstants::GetPatternSyntaxExceptionClass(env); in throwPatternSyntaxException() local
70 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset); in throwPatternSyntaxException()
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DFuturesGetCheckedBenchmark.java121 for (Class<? extends Exception> exceptionClass : in addOtherEntries()
123 getChecked(validator, immediateFuture(""), exceptionClass); in addOtherEntries()
163 public void validateClass(Class<? extends Exception> exceptionClass) { in validateClass() argument
165 isCheckedException(exceptionClass), in validateClass()
167 exceptionClass); in validateClass() local
179 public void validateClass(Class<? extends Exception> exceptionClass) { in validateClass() argument
180 checkExceptionClassValidity(exceptionClass); in validateClass()
/external/guava/android/guava-tests/benchmark/com/google/common/util/concurrent/
DFuturesGetCheckedBenchmark.java121 for (Class<? extends Exception> exceptionClass : in addOtherEntries()
123 getChecked(validator, immediateFuture(""), exceptionClass); in addOtherEntries()
163 public void validateClass(Class<? extends Exception> exceptionClass) { in validateClass() argument
165 isCheckedException(exceptionClass), in validateClass()
167 exceptionClass); in validateClass() local
179 public void validateClass(Class<? extends Exception> exceptionClass) { in validateClass() argument
180 checkExceptionClassValidity(exceptionClass); in validateClass()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DJSR166TestCase.java736 final Class<?> exceptionClass; field in JSR166TestCase.RunnableShouldThrow
738 <T extends Throwable> RunnableShouldThrow(Class<T> exceptionClass) { in RunnableShouldThrow() argument
739 this.exceptionClass = exceptionClass; in RunnableShouldThrow()
745 threadShouldThrow(exceptionClass.getSimpleName()); in run()
747 if (!exceptionClass.isInstance(t)) threadUnexpectedException(t); in run()
755 final Class<?> exceptionClass; field in JSR166TestCase.ThreadShouldThrow
757 <T extends Throwable> ThreadShouldThrow(Class<T> exceptionClass) { in ThreadShouldThrow() argument
758 this.exceptionClass = exceptionClass; in ThreadShouldThrow()
764 threadShouldThrow(exceptionClass.getSimpleName()); in run()
766 if (!exceptionClass.isInstance(t)) threadUnexpectedException(t); in run()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DJSR166TestCase.java744 final Class<?> exceptionClass; field in JSR166TestCase.RunnableShouldThrow
746 <T extends Throwable> RunnableShouldThrow(Class<T> exceptionClass) { in RunnableShouldThrow() argument
747 this.exceptionClass = exceptionClass; in RunnableShouldThrow()
754 threadShouldThrow(exceptionClass.getSimpleName()); in run()
756 if (!exceptionClass.isInstance(t)) threadUnexpectedException(t); in run()
764 final Class<?> exceptionClass; field in JSR166TestCase.ThreadShouldThrow
766 <T extends Throwable> ThreadShouldThrow(Class<T> exceptionClass) { in ThreadShouldThrow() argument
767 this.exceptionClass = exceptionClass; in ThreadShouldThrow()
774 threadShouldThrow(exceptionClass.getSimpleName()); in run()
776 if (!exceptionClass.isInstance(t)) threadUnexpectedException(t); in run()
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DSmaliClassTest.java137 PsiClass exceptionClass = exceptionType.resolve(); in testIsInheritor() local
138 Assert.assertNotNull(exceptionClass); in testIsInheritor()
144 Assert.assertTrue(smaliClass.isInheritor(exceptionClass, true)); in testIsInheritor()
148 Assert.assertTrue(smaliClass.isInheritorDeep(exceptionClass, null)); in testIsInheritor()
152 Assert.assertTrue(smaliClass.isInheritor(exceptionClass, false)); in testIsInheritor()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowMemoryMappedFile.java35 throw (Throwable) exceptionClass().getConstructor(String.class, int.class) in mmapRO()
44 … throw (Throwable) exceptionClass().getConstructor(String.class, int.class, Throwable.class) in mmapRO()
52 private static Class exceptionClass() { in exceptionClass() method in ShadowMemoryMappedFile
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Djniutil.cc134 jclass exceptionClass = env->FindClass(className); in throwException() local
136 if (exceptionClass == nullptr) { in throwException()
142 if (env->ThrowNew(exceptionClass, msg) != JNI_OK) { in throwException()
148 env->DeleteLocalRef(exceptionClass); in throwException()
/external/desugar/java/com/google/devtools/build/android/desugar/
DTryWithResourcesRewriter.java292 InferredType exceptionClass = typeInference.getTypeOfOperandFromTop(1); in visitMethodInsn() local
293 if (!exceptionClass.isNull()) { in visitMethodInsn()
294 Optional<String> exceptionClassInternalName = exceptionClass.getInternalName(); in visitMethodInsn()
298 exceptionClass, in visitMethodInsn() local
/external/clang/test/SemaObjC/
Dbuiltin_objc_lib_functions.m26 int f6(Class exceptionClass, id exception) {
27 …return objc_exception_match(exceptionClass, exception); // expected-warning {{implicitly declaring…
/external/llvm-project/clang/test/SemaObjC/
Dbuiltin_objc_lib_functions.m26 int f6(Class exceptionClass, id exception) {
27 …return objc_exception_match(exceptionClass, exception); // expected-warning {{implicitly declaring…
/external/compiler-rt/lib/builtins/
Dgcc_personality_v0.c168 uint64_t exceptionClass, struct _Unwind_Exception* exceptionObject, in __gcc_personality_sj0() argument
178 uint64_t exceptionClass, struct _Unwind_Exception* exceptionObject, in __gcc_personality_sj0()
/external/llvm-project/compiler-rt/lib/builtins/
Dgcc_personality_v0.c164 int version, _Unwind_Action actions, uint64_t exceptionClass, in __gcc_personality_sj0() argument
173 int version, _Unwind_Action actions, uint64_t exceptionClass, in __gcc_personality_sj0()
/external/llvm-project/libunwind/include/
Dunwind.h147 uint64_t exceptionClass,
153 int version, _Unwind_Action actions, uint64_t exceptionClass,
/external/llvm/examples/ExceptionDemo/
DExceptionDemo.cpp555 uint64_t exceptionClass, in handleActionValue() argument
561 (exceptionClass != ourBaseExceptionClass)) in handleActionValue()
648 uint64_t exceptionClass, in handleLsda() argument
714 if (exceptionClass != ourBaseExceptionClass) { in handleLsda()
753 exceptionClass, in handleLsda()
831 uint64_t exceptionClass, in ourPersonality() argument
859 exceptionClass, in ourPersonality()
/external/llvm-project/llvm/examples/ExceptionDemo/
DExceptionDemo.cpp505 uint64_t exceptionClass, in handleActionValue() argument
511 (exceptionClass != ourBaseExceptionClass)) in handleActionValue()
597 _Unwind_Exception_Class exceptionClass, in handleLsda() argument
663 if (exceptionClass != ourBaseExceptionClass) { in handleLsda()
702 exceptionClass, in handleLsda()
779 _Unwind_Exception_Class exceptionClass, in ourPersonality() argument
807 exceptionClass, in ourPersonality()
/external/oj-libjdwp/src/share/back/
DeventFilter.h53 jclass exceptionClass,
DeventFilter.c828 jclass exceptionClass, in eventFilter_setExceptionOnlyFilter() argument
842 if (exceptionClass != NULL) { in eventFilter_setExceptionOnlyFilter()
845 saveGlobalRef(env, exceptionClass, &(filter->exception)); in eventFilter_setExceptionOnlyFilter()
/external/robolectric-shadows/shadowapi/src/main/java/org/robolectric/util/
DReflectionHelpers.java395 …n> R traverseClassHierarchy(Class<?> targetClass, Class<? extends E> exceptionClass, InsideTravers…
401 if (!exceptionClass.isInstance(e)) {
/external/libcxxabi/src/
Dcxa_personality.cpp957 (int version, _Unwind_Action actions, uint64_t exceptionClass, in __gxx_personality_imp() argument
963 bool native_exception = (exceptionClass & get_vendor_and_language) == in __gxx_personality_imp()

12