Home
last modified time | relevance | path

Searched refs:Throwable (Results 1 – 25 of 2243) sorted by relevance

12345678910>>...90

/external/desugar/java/com/google/devtools/build/android/desugar/runtime/
DThrowableExtension.java64 } catch (Throwable e) {
83 public static void addSuppressed(Throwable receiver, Throwable suppressed) { in addSuppressed()
87 public static Throwable[] getSuppressed(Throwable receiver) { in getSuppressed()
91 public static void printStackTrace(Throwable receiver) { in printStackTrace()
95 public static void printStackTrace(Throwable receiver, PrintWriter writer) { in printStackTrace()
99 public static void printStackTrace(Throwable receiver, PrintStream stream) { in printStackTrace()
103 public static void closeResource(Throwable throwable, Object resource) throws Throwable { in closeResource()
126 Throwable cause = e.getCause(); in closeResource()
131 } catch (Throwable e) { in closeResource()
180 protected static final Throwable[] EMPTY_THROWABLE_ARRAY = new Throwable[0];
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DFuturesGetCheckedInputs.java44 public TwoArgConstructorException(String message, Throwable cause) { in TwoArgConstructorException()
50 public TwoArgConstructorRuntimeException(String message, Throwable cause) { in TwoArgConstructorRuntimeException()
56 private ExceptionWithPrivateConstructor(String message, Throwable cause) { in ExceptionWithPrivateConstructor()
82 public ExceptionWithManyConstructors(Throwable a) {} in ExceptionWithManyConstructors()
84 public ExceptionWithManyConstructors(Throwable a, Throwable b) {} in ExceptionWithManyConstructors()
86 public ExceptionWithManyConstructors(String s, Throwable b) { in ExceptionWithManyConstructors()
90 public ExceptionWithManyConstructors(Throwable a, Throwable b, Throwable c) {} in ExceptionWithManyConstructors()
92 public ExceptionWithManyConstructors(Throwable a, Throwable b, Throwable c, Throwable d) {} in ExceptionWithManyConstructors()
95 Throwable a, Throwable b, Throwable c, Throwable d, Throwable e) {} in ExceptionWithManyConstructors()
98 Throwable a, Throwable b, Throwable c, Throwable d, Throwable e, String s, Integer i) {} in ExceptionWithManyConstructors()
[all …]
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DFuturesGetCheckedInputs.java44 public TwoArgConstructorException(String message, Throwable cause) { in TwoArgConstructorException()
50 public TwoArgConstructorRuntimeException(String message, Throwable cause) { in TwoArgConstructorRuntimeException()
56 private ExceptionWithPrivateConstructor(String message, Throwable cause) { in ExceptionWithPrivateConstructor()
82 public ExceptionWithManyConstructors(Throwable a) {} in ExceptionWithManyConstructors()
84 public ExceptionWithManyConstructors(Throwable a, Throwable b) {} in ExceptionWithManyConstructors()
86 public ExceptionWithManyConstructors(String s, Throwable b) { in ExceptionWithManyConstructors()
90 public ExceptionWithManyConstructors(Throwable a, Throwable b, Throwable c) {} in ExceptionWithManyConstructors()
92 public ExceptionWithManyConstructors(Throwable a, Throwable b, Throwable c, Throwable d) {} in ExceptionWithManyConstructors()
95 Throwable a, Throwable b, Throwable c, Throwable d, Throwable e) {} in ExceptionWithManyConstructors()
98 Throwable a, Throwable b, Throwable c, Throwable d, Throwable e, String s, Integer i) {} in ExceptionWithManyConstructors()
[all …]
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DBytecodeTypeInferenceTest.golden.txt231 FRAME FULL [testsubjects/TestSubject$SimpleResource java/lang/Throwable] [java/lang/Throwable]
234 …|__LOCAL: [Ltestsubjects/TestSubject$SimpleResource;, Ljava/lang/Throwable;, Ljava/lang/Throwable;]
236 |__STACK: [Ljava/lang/Throwable;]
237 …|__LOCAL: [Ltestsubjects/TestSubject$SimpleResource;, Ljava/lang/Throwable;, Ljava/lang/Throwable;]
239 |__STACK: [Ljava/lang/Throwable;, Ljava/lang/Throwable;]
240 …|__LOCAL: [Ltestsubjects/TestSubject$SimpleResource;, Ljava/lang/Throwable;, Ljava/lang/Throwable;]
241 INVOKEVIRTUAL java/lang/Throwable.addSuppressed (Ljava/lang/Throwable;)V
243 …|__LOCAL: [Ltestsubjects/TestSubject$SimpleResource;, Ljava/lang/Throwable;, Ljava/lang/Throwable;]
246 …|__LOCAL: [Ltestsubjects/TestSubject$SimpleResource;, Ljava/lang/Throwable;, Ljava/lang/Throwable;]
251 |__LOCAL: [Ltestsubjects/TestSubject$SimpleResource;, Ljava/lang/Throwable;]
[all …]
/external/guava/android/guava/src/com/google/common/base/
DThrowables.java72 public static <X extends Throwable> void throwIfInstanceOf( in throwIfInstanceOf()
73 Throwable throwable, Class<X> declaredType) throws X { in throwIfInstanceOf()
101 public static <X extends Throwable> void propagateIfInstanceOf( in propagateIfInstanceOf()
102 @NullableDecl Throwable throwable, Class<X> declaredType) throws X { in propagateIfInstanceOf()
127 public static void throwIfUnchecked(Throwable throwable) { in throwIfUnchecked()
157 public static void propagateIfPossible(@NullableDecl Throwable throwable) { in propagateIfPossible()
182 public static <X extends Throwable> void propagateIfPossible( in propagateIfPossible()
183 @NullableDecl Throwable throwable, Class<X> declaredType) throws X { in propagateIfPossible()
200 public static <X1 extends Throwable, X2 extends Throwable> void propagateIfPossible( in propagateIfPossible()
201 @NullableDecl Throwable throwable, Class<X1> declaredType1, Class<X2> declaredType2) in propagateIfPossible()
[all …]
/external/guava/guava/src/com/google/common/base/
DThrowables.java72 public static <X extends Throwable> void throwIfInstanceOf( in throwIfInstanceOf()
73 Throwable throwable, Class<X> declaredType) throws X { in throwIfInstanceOf()
101 public static <X extends Throwable> void propagateIfInstanceOf( in propagateIfInstanceOf()
102 @Nullable Throwable throwable, Class<X> declaredType) throws X { in propagateIfInstanceOf()
127 public static void throwIfUnchecked(Throwable throwable) { in throwIfUnchecked()
157 public static void propagateIfPossible(@Nullable Throwable throwable) { in propagateIfPossible()
182 public static <X extends Throwable> void propagateIfPossible( in propagateIfPossible()
183 @Nullable Throwable throwable, Class<X> declaredType) throws X { in propagateIfPossible()
200 public static <X1 extends Throwable, X2 extends Throwable> void propagateIfPossible( in propagateIfPossible()
201 @Nullable Throwable throwable, Class<X1> declaredType1, Class<X2> declaredType2) in propagateIfPossible()
[all …]
/external/mockito/src/test/java/org/mockitoutil/
DSafeJUnitRuleTest.java21 @Test public void happy_path_no_exception() throws Throwable { in happy_path_no_exception()
24 public void evaluate() throws Throwable { in happy_path_no_exception()
34 public void regular_failing_test() throws Throwable { in regular_failing_test()
37 public void evaluate() throws Throwable { in regular_failing_test()
43 @Test public void rule_threw_exception() throws Throwable { in rule_threw_exception()
49 public void evaluate() throws Throwable { in rule_threw_exception()
55 @Test public void expected_exception_but_no_exception() throws Throwable { in expected_exception_but_no_exception()
62 public void evaluate() throws Throwable { in expected_exception_but_no_exception()
74 @Test public void expected_exception_message_did_not_match() throws Throwable { in expected_exception_message_did_not_match()
81 public void evaluate() throws Throwable { in expected_exception_message_did_not_match()
[all …]
DSafeJUnitRule.java32 public void evaluate() throws Throwable { in apply()
36 } catch (Throwable t) { in apply()
54 …public void expectFailure(final Class<? extends Throwable> expected, final String expectedMessage)…
56 public void doAssert(Throwable t) {
65 public void expectFailure(final Class<? extends Throwable> expected) {
67 public void doAssert(Throwable t) {
73 …ivate static AbstractThrowableAssert assertThrowable(Throwable throwable, Class<? extends Throwabl…
95 void doAssert(Throwable t);
101 class ExpectedThrowableNotReported extends Throwable {
/external/junit/src/main/java/org/junit/rules/
DTestWatcher.java56 public void evaluate() throws Throwable { in apply()
57 List<Throwable> errors = new ArrayList<Throwable>(); in apply()
66 } catch (Throwable e) { in apply()
79 List<Throwable> errors) {
82 } catch (Throwable e) {
87 private void failedQuietly(Throwable e, Description description,
88 List<Throwable> errors) {
91 } catch (Throwable e1) {
98 List<Throwable> errors) {
105 } catch (Throwable e1) {
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DExceptions.kt18 val Throwable.suppressed: Array<Throwable> get() { constant
21 return method.invoke(this) as Array<Throwable>
24 internal inline fun <reified T : Throwable> checkException(exception: Throwable): Boolean { in checkException()
31 internal fun checkCycles(t: Throwable) { in checkCycles()
40 private var unhandled: ArrayList<Throwable>? = ArrayList()
42 …override fun handleException(context: CoroutineContext, exception: Throwable) = synchronized<Unit>… in <lambda>()
46 fun getExceptions(): List<Throwable> = synchronized(this) { in getExceptions()
50 fun getException(): Throwable = synchronized(this) { in <lambda>()
60 ): Throwable { in captureExceptionsRun()
69 ): List<Throwable> { in captureMultipleExceptionsRun()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZip64SupportIT.java51 @Test public void read5GBOfZerosUsingInputStream() throws Throwable { in read5GBOfZerosUsingInputStream()
56 throws Throwable { in read5GBOfZerosGeneratedBy7ZIPUsingInputStream()
61 throws Throwable { in read5GBOfZerosGeneratedByJava7JarUsingInputStream()
66 throws Throwable { in read5GBOfZerosGeneratedByWinZIPUsingInputStream()
71 throws Throwable { in read5GBOfZerosGeneratedByPKZipUsingInputStream()
76 @Test public void read100KFilesUsingInputStream() throws Throwable { in read100KFilesUsingInputStream()
81 throws Throwable { in read100KFilesGeneratedBy7ZIPUsingInputStream()
86 throws Throwable { in read100KFilesGeneratedByWinCFUsingInputStream()
91 throws Throwable { in read100KFilesGeneratedByJava7JarUsingInputStream()
96 throws Throwable { in read100KFilesGeneratedByWinZIPUsingInputStream()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/
DExceptionsConstuctor.kt13 private val throwableFields = Throwable::class.java.fieldsCountOrDefault(-1) in <lambda>()
15 private typealias Ctor = (Throwable) -> Throwable? in <lambda>()
17 private val exceptionCtors: WeakHashMap<Class<out Throwable>, Ctor> = WeakHashMap() in <lambda>()
20 internal fun <E : Throwable> tryCopyException(exception: E): E? { in <lambda>()
55 p[0] == String::class.java && p[1] == Throwable::class.java -> in createConstructor()
56 safeCtor { e -> constructor.newInstance(e.message, e) as Throwable } in createConstructor()
60 Throwable::class.java -> in createConstructor()
61 safeCtor { e -> constructor.newInstance(e) as Throwable } in createConstructor()
63 … safeCtor { e -> (constructor.newInstance(e.message) as Throwable).also { it.initCause(e) } } in createConstructor()
66 0 -> safeCtor { e -> (constructor.newInstance() as Throwable).also { it.initCause(e) } } in createConstructor()
[all …]
/external/guava/android/guava/src/com/google/common/io/
DCloser.java108 @NullableDecl private Throwable thrown;
144 public RuntimeException rethrow(Throwable e) throws IOException { in rethrow()
165 public <X extends Exception> RuntimeException rethrow(Throwable e, Class<X> declaredType) in rethrow()
190 Throwable e, Class<X1> declaredType1, Class<X2> declaredType2) throws IOException, X1, X2 { in rethrow()
207 Throwable throwable = thrown; in close()
214 } catch (Throwable e) { in close()
237 void suppress(Closeable closeable, Throwable thrown, Throwable suppressed); in suppress()
247 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress()
271 return Throwable.class.getMethod("addSuppressed", Throwable.class); in addSuppressedMethodOrNull()
272 } catch (Throwable e) { in addSuppressedMethodOrNull()
[all …]
/external/guava/guava/src/com/google/common/io/
DCloser.java108 private @Nullable Throwable thrown;
144 public RuntimeException rethrow(Throwable e) throws IOException { in rethrow()
165 public <X extends Exception> RuntimeException rethrow(Throwable e, Class<X> declaredType) in rethrow()
190 Throwable e, Class<X1> declaredType1, Class<X2> declaredType2) throws IOException, X1, X2 { in rethrow()
207 Throwable throwable = thrown; in close()
214 } catch (Throwable e) { in close()
237 void suppress(Closeable closeable, Throwable thrown, Throwable suppressed); in suppress()
247 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress()
271 return Throwable.class.getMethod("addSuppressed", Throwable.class); in addSuppressedMethodOrNull()
272 } catch (Throwable e) { in addSuppressedMethodOrNull()
[all …]
/external/mockito/src/test/java/org/mockitousage/junitrule/
DStubbingWarningsJUnitRuleTest.java28 public void no_unused_stubs_reported_on_failure() throws Throwable { in no_unused_stubs_reported_on_failure()
31 public void doAssert(Throwable t) { in no_unused_stubs_reported_on_failure()
43 public void stubbing_arg_mismatch_on_failure() throws Throwable { in stubbing_arg_mismatch_on_failure()
46 public void doAssert(Throwable t) { in stubbing_arg_mismatch_on_failure()
62 @Test public void no_stubbing_arg_mismatch_when_no_mismatch_on_fail() throws Throwable { in no_stubbing_arg_mismatch_when_no_mismatch_on_fail()
65 public void doAssert(Throwable t) { in no_stubbing_arg_mismatch_when_no_mismatch_on_fail()
78 public void no_stubbing_warning_on_pass() throws Throwable { in no_stubbing_warning_on_pass()
92 public void multiple_stubbing_arg_mismatch_on_failure() throws Throwable { in multiple_stubbing_arg_mismatch_on_failure()
95 public void doAssert(Throwable t) { in multiple_stubbing_arg_mismatch_on_failure()
120 public void reports_only_mismatching_stubs() throws Throwable { in reports_only_mismatching_stubs()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/
DErrors.kt57 public fun <T> Flow<T>.catch(action: suspend FlowCollector<T>.(cause: Throwable) -> Unit): Flow<T> = in <lambda>()
71 public typealias ExceptionPredicate = (Throwable) -> Boolean
86 predicate: (Throwable) -> Boolean = { true } in onErrorCollect()
121 predicate: suspend (cause: Throwable) -> Boolean = { true } in retry()
131 predicate: (Throwable) -> Boolean = { true } in retry()
170 public fun <T> Flow<T>.retryWhen(predicate: suspend FlowCollector<T>.(cause: Throwable, attempt: Lo… in retryWhen()
191 ): Throwable? { in catchImpl()
192 var fromDownstream: Throwable? = null in catchImpl()
197 } catch (e: Throwable) { in catchImpl()
202 } catch (e: Throwable) { in catchImpl()
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/debuggee/
DInvokeMethodDebuggee.java43 public int testMethod1(boolean needThrow) throws Throwable { in testMethod1()
46 throw new Throwable("test exception"); in testMethod1()
51 public static int testMethod2(boolean needThrow) throws Throwable { in testMethod2()
53 throw new Throwable("test exception"); in testMethod2()
108 public testClass2(boolean needThrow) throws Throwable { in testClass2()
110 throw new Throwable("test exception"); in testClass2()
114 public int testMethod3(boolean needThrow) throws Throwable { in testMethod3()
116 throw new Throwable("test exception"); in testMethod3()
123 public testClass3() throws Throwable { in testClass3()
128 public int testMethod3(boolean needThrow) throws Throwable { in testMethod3()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DCoroutineExceptionHandler.kt9 internal expect fun handleCoroutineExceptionImpl(context: CoroutineContext, exception: Throwable) in handleCoroutineExceptionImpl()
21 public fun handleCoroutineException(context: CoroutineContext, exception: Throwable) { in handleCoroutineExceptionImpl()
28 } catch (t: Throwable) { in handleCoroutineExceptionImpl()
36 internal fun handlerException(originalException: Throwable, thrownException: Throwable): Throwable { in handlerException()
48 public inline fun CoroutineExceptionHandler(crossinline handler: (CoroutineContext, Throwable) -> U… in CoroutineExceptionHandler()
50 override fun handleException(context: CoroutineContext, exception: Throwable) = in CoroutineExceptionHandler()
108 public fun handleException(context: CoroutineContext, exception: Throwable)
/external/guava/guava/src/com/google/common/util/concurrent/
DAggregateFutureState.java43 private volatile Set<Throwable> seenExceptions = null;
53 Throwable thrownReflectionFailure = null;
59 } catch (Throwable reflectionFailure) {
79 final Set<Throwable> getOrInitSeenExceptions() { in getOrInitSeenExceptions()
96 Set<Throwable> seenExceptionsLocal = seenExceptions; in getOrInitSeenExceptions()
134 abstract void addInitialException(Set<Throwable> seen); in addInitialException()
147 AggregateFutureState state, Set<Throwable> expect, Set<Throwable> update); in compareAndSetSeenExceptions()
154 final AtomicReferenceFieldUpdater<AggregateFutureState, Set<Throwable>> seenExceptionsUpdater;
167 AggregateFutureState state, Set<Throwable> expect, Set<Throwable> update) { in compareAndSetSeenExceptions()
180 AggregateFutureState state, Set<Throwable> expect, Set<Throwable> update) { in compareAndSetSeenExceptions()
/external/guava/android/guava/src/com/google/common/util/concurrent/
DAggregateFutureState.java43 private volatile Set<Throwable> seenExceptions = null;
53 Throwable thrownReflectionFailure = null;
59 } catch (Throwable reflectionFailure) {
79 final Set<Throwable> getOrInitSeenExceptions() { in getOrInitSeenExceptions()
96 Set<Throwable> seenExceptionsLocal = seenExceptions; in getOrInitSeenExceptions()
134 abstract void addInitialException(Set<Throwable> seen); in addInitialException()
147 AggregateFutureState state, Set<Throwable> expect, Set<Throwable> update); in compareAndSetSeenExceptions()
154 final AtomicReferenceFieldUpdater<AggregateFutureState, Set<Throwable>> seenExceptionsUpdater;
167 AggregateFutureState state, Set<Throwable> expect, Set<Throwable> update) { in compareAndSetSeenExceptions()
180 AggregateFutureState state, Set<Throwable> expect, Set<Throwable> update) { in compareAndSetSeenExceptions()
/external/mockito/src/main/java/org/mockito/
DBDDMockito.java118 BDDMyOngoingStubbing<T> willThrow(Throwable... throwables); in willThrow()
124 BDDMyOngoingStubbing<T> willThrow(Class<? extends Throwable> throwableType); in willThrow()
132 …BDDMyOngoingStubbing<T> willThrow(Class<? extends Throwable> throwableType, Class<? extends Throwa… in willThrow()
171 public BDDMyOngoingStubbing<T> willThrow(Throwable... throwables) { in willThrow()
175 public BDDMyOngoingStubbing<T> willThrow(Class<? extends Throwable> throwableType) { in willThrow()
179 … BDDMyOngoingStubbing<T> willThrow(Class<? extends Throwable> throwableType, Class<? extends Throw… in willThrow()
372 BDDStubber willThrow(Throwable... toBeThrown); in willThrow()
378 BDDStubber willThrow(Class<? extends Throwable> toBeThrown); in willThrow()
385 …BDDStubber willThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextToBe… in willThrow()
440 public BDDStubber willThrow(Throwable... toBeThrown) { in willThrow()
[all …]
/external/junit/src/main/java/org/junit/runners/model/
DMultipleFailureException.java26 private final List<Throwable> fErrors;
28 public MultipleFailureException(List<Throwable> errors) { in MultipleFailureException()
33 this.fErrors = new ArrayList<Throwable>(errors.size()); in MultipleFailureException()
34 for (Throwable error : errors) { in MultipleFailureException()
42 public List<Throwable> getFailures() { in getFailures()
50 for (Throwable e : fErrors) { in getMessage()
58 for (Throwable e: fErrors) { in printStackTrace()
65 for (Throwable e: fErrors) { in printStackTrace()
72 for (Throwable e: fErrors) { in printStackTrace()
87 public static void assertEmpty(List<Throwable> errors) throws Exception { in assertEmpty()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DTestBase.common.kt17 public fun error(message: Any, cause: Throwable? = null): Nothing in <lambda>()
25 expected: ((Throwable) -> Boolean)? = null, in <lambda>()
26 unhandled: List<(Throwable) -> Boolean> = emptyList(), in <lambda>()
39 public inline fun <reified T : Throwable> assertFailsWith(block: () -> Unit) { in assertFailsWith()
43 } catch (e: Throwable) { in assertFailsWith()
48 public suspend inline fun <reified T : Throwable> assertFailsWith(flow: Flow<*>) { in assertFailsWith()
52 } catch (e: Throwable) { in assertFailsWith()
62 public class TestException(message: String? = null, private val data: Any? = null) : Throwable(mess…
63 public class TestException1(message: String? = null, private val data: Any? = null) : Throwable(mes…
64 public class TestException2(message: String? = null, private val data: Any? = null) : Throwable(mes…
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DCloserTest.java86 } catch (Throwable e) { in testExceptionThrown_fromTryBlock()
91 } catch (Throwable expected) { in testExceptionThrown_fromTryBlock()
112 } catch (Throwable e) { in testExceptionThrown_whenCreatingCloseables()
117 } catch (Throwable expected) { in testExceptionThrown_whenCreatingCloseables()
139 } catch (Throwable expected) { in testExceptionThrown_whileClosingLastCloseable()
160 } catch (Throwable expected) { in testExceptionThrown_whileClosingFirstCloseable()
183 } catch (Throwable e) { in testCloseExceptionsSuppressed_whenExceptionThrownFromTryBlock()
188 } catch (Throwable expected) { in testCloseExceptionsSuppressed_whenExceptionThrownFromTryBlock()
214 } catch (Throwable expected) { in testCloseExceptionsSuppressed_whenExceptionThrownClosingFirstCloseable()
240 } catch (Throwable e) { in testRuntimeExceptions()
[all …]
/external/guava/android/guava-tests/test/com/google/common/io/
DCloserTest.java86 } catch (Throwable e) { in testExceptionThrown_fromTryBlock()
91 } catch (Throwable expected) { in testExceptionThrown_fromTryBlock()
112 } catch (Throwable e) { in testExceptionThrown_whenCreatingCloseables()
117 } catch (Throwable expected) { in testExceptionThrown_whenCreatingCloseables()
139 } catch (Throwable expected) { in testExceptionThrown_whileClosingLastCloseable()
160 } catch (Throwable expected) { in testExceptionThrown_whileClosingFirstCloseable()
183 } catch (Throwable e) { in testCloseExceptionsSuppressed_whenExceptionThrownFromTryBlock()
188 } catch (Throwable expected) { in testCloseExceptionsSuppressed_whenExceptionThrownFromTryBlock()
214 } catch (Throwable expected) { in testCloseExceptionsSuppressed_whenExceptionThrownClosingFirstCloseable()
240 } catch (Throwable e) { in testRuntimeExceptions()
[all …]

12345678910>>...90