Home
last modified time | relevance | path

Searched refs:setException (Results 1 – 25 of 38) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DSettableFutureTest.java56 assertTrue(future.setException(new Exception("failure"))); in testSetFailure()
62 future.setException(null); in testSetFailureNull()
67 assertTrue(future.setException(new Exception("failure"))); in testSetFailureNull()
DAsyncSettableFutureTest.java50 assertFalse(future.setException(new Exception("bar"))); in testSetValue()
61 assertTrue(future.setException(e)); in testSetException()
65 assertFalse(future.setException(new Exception("quux"))); in testSetException()
85 assertFalse(future.setException(new Exception("bar"))); in testSetFuture()
107 assertFalse(future.setException(new Exception("bar"))); in testSetFuture_genericsHierarchy()
DAbstractChainedListenableFutureTest.java61 inputFuture.setException(EXCEPTION); in testFutureGetThrowsWrappedException()
67 inputFuture.setException(error); in testFutureGetThrowsWrappedError()
DAbstractFutureTest.java50 setException(failure); in testException()
125 future.setException(new IllegalArgumentException("failure")); in testCompletionFinishesWithDone()
DFuturesTest.java878 future1.setException(exception);
924 future1.setException(error);
946 future2.setException(new Throwable("failed2"));
1176 delayedFailed.setException(new Exception());
1520 future1.setException(new Throwable("failed1"));
1541 future1.setException(new Throwable("failed1"));
1544 future2.setException(new Throwable("failed2"));
1688 future2.setException(new Throwable("failed2"));
1748 input.setException(failure);
1804 future.setException(new IOException("checked"));
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/
DEventWithExceptionTest.java78 int exceptionRequestId = setException(); in testBreakpoint_BeforeException()
137 int exceptionRequestId = setException(); in testBreakpoint_UponException()
227 int exceptionRequestId = setException(); in runSingleStepTest()
298 int exceptionRequestId = setException(); in runFieldWatchpointTest()
358 int exceptionRequestId = setException(); in runMethodExitTest()
409 private int setException() { in setException() method in EventWithExceptionTest
412 debuggeeWrapper.vmMirror.setException(getClassSignature(EXCEPTION_CLASS), true, in setException()
DBreakpointOnCatchTest.java100 ReplyPacket replyPacket = debuggeeWrapper.vmMirror.setException(exceptionSig, true, false); in requestExceptionCaughtEvent()
DSingleStepWithPendingExceptionTest.java123 ReplyPacket replyPacket = debuggeeWrapper.vmMirror.setException( in setCatchException()
DExceptionUncaughtTest.java191 ReplyPacket replyPacket = debuggeeWrapper.vmMirror.setException(EXCEPTION_SIGNATURE, in requestAndReceiveExceptionEvent()
DCombinedExceptionEventsTest.java177 ReplyPacket replyPacket = debuggeeWrapper.vmMirror.setException( in requestException()
DExceptionCaughtTest.java279 ReplyPacket replyPacket = debuggeeWrapper.vmMirror.setException(exceptionSignature, in requestAndReceiveExceptionEvent()
/external/guava/guava/src/com/google/common/util/concurrent/
DSettableFuture.java67 public boolean setException(Throwable throwable) { in setException() method in SettableFuture
68 return super.setException(throwable); in setException()
DFutures.java487 setException(t); in FallbackFuture()
492 setException(e); in FallbackFuture()
641 outputFuture.setException(e); in rejectionPropagatingRunnable()
902 setException(e.getCause());
927 setException(e.getCause());
936 setException(e.getCause());
940 setException(t);
1042 outputFuture.setException(e.getCause());
1076 @Override protected void setException(Throwable t) {
1077 super.setException(t);
[all …]
DAbstractFuture.java199 protected boolean setException(Throwable throwable) { in setException() method in AbstractFuture
200 boolean result = sync.setException(checkNotNull(throwable)); in setException()
347 boolean setException(Throwable t) { in setException() method in AbstractFuture.Sync
DAsyncSettableFuture.java75 public boolean setException(Throwable exception) { in setException() method in AsyncSettableFuture
/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/
DStreamRecorder.java64 firstValue.setException(t); in onError()
73 firstValue.setException(new IllegalStateException("No first value provided")); in onCompleted()
/external/grpc-grpc-java/testing/src/main/java/io/grpc/testing/
DStreamRecorder.java69 firstValue.setException(t); in onError()
78 firstValue.setException(new IllegalStateException("No first value provided")); in onCompleted()
/external/grpc-grpc-java/stub/src/main/java/io/grpc/stub/
DClientCalls.java476 responseFuture.setException( in onClose()
482 responseFuture.setException(status.asRuntimeException(trailers)); in onClose()
506 protected boolean setException(Throwable throwable) { in setException() method in ClientCalls.GrpcFuture
507 return super.setException(throwable); in setException()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Deoptimization/
DDeoptimizationWithExceptionHandlingTest.java129 debuggeeWrapper.vmMirror.setException(exceptionClassSignature, true, false); in requestExceptionEvent()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/
DExceptionTest.java63 debuggeeWrapper.vmMirror.setException(exceptionSignature, isCatch, in testException001()
/external/droiddriver/src/io/appium/droiddriver/util/
DInstrumentationUtils.java200 setException(e); in runOnMainSyncNoThrow()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DServerSocketService.java210 future.setException(new Exception("The socket has been closed")); in shutDown()
/external/dagger2/producers/src/test/java/dagger/producers/internal/
DAbstractProducerTest.java113 delegateFuture.setException(t); in monitor_failure()
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DFuturesCombineBenchmark.java133 future.setException(throwable);
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DNettyClientTransportTest.java445 pingResult.setException(cause); in failingToConstructChannelShouldFailGracefully()
699 closedFuture.setException(e); in closed()
700 responseFuture.setException(e); in closed()

12