Home
last modified time | relevance | path

Searched refs:withCause (Results 1 – 25 of 32) sorted by relevance

12

/external/grpc-grpc-java/core/src/main/java/io/grpc/
DContexts.java141 .withCause(cancellationCause); in statusFromCancelled()
148 return Status.CANCELLED.withDescription("Context cancelled").withCause(cancellationCause); in statusFromCancelled()
150 return status.withCause(cancellationCause); in statusFromCancelled()
DStatus.java400 return UNKNOWN.withCause(t); in fromThrowable()
448 public Status withCause(Throwable cause) { in withCause() method in Status
/external/grpc-grpc-java/examples/src/main/java/io/grpc/examples/advanced/
DJsonMarshaller.java70 .withCause(e) in jsonMarshaller()
88 .withCause(e).asRuntimeException(); in jsonMarshaller()
92 .withCause(e).asRuntimeException(); in jsonMarshaller()
/external/grpc-grpc-java/auth/src/main/java/io/grpc/auth/
DGoogleAuthLibraryCallCredentials.java130 .withCause(t)); in applyRequestMetadata()
142 .withCause(e)); in applyRequestMetadata()
146 .withCause(e)); in applyRequestMetadata()
168 .withCause(e).asException(); in serviceUri()
183 "Unable to construct service URI after removing port").withCause(e).asException(); in removePort()
DClientAuthInterceptor.java111 .withCause(e).asException();
127 .withCause(e).asException();
135 throw Status.UNAUTHENTICATED.withDescription("Unable to get request metadata").withCause(e)
/external/downloader/src/main/java/com/google/android/downloader/
DFloggerDownloaderLogger.java50 logger.atWarning().withCause(cause).logVarargs(message, args); in logWarning()
62 logger.atSevere().withCause(cause).logVarargs(message, args); in logError()
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DUtilsTest.java60 assertStatusEquals(Status.UNAVAILABLE.withCause(t), Utils.statusFromThrowable(t)); in testStatusFromThrowable()
62 assertStatusEquals(Status.INTERNAL.withCause(t), Utils.statusFromThrowable(t)); in testStatusFromThrowable()
64 assertStatusEquals(Status.UNKNOWN.withCause(t), Utils.statusFromThrowable(t)); in testStatusFromThrowable()
DNettyServerStreamTest.java234 Status status = Status.INTERNAL.withCause(new Throwable()); in abortStreamAndNotSendStatus()
244 Status status = Status.INTERNAL.withCause(new Throwable()); in abortStreamAfterClientHalfCloseShouldCallClose()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DClientCallImpl.java393 status = status.withCause(cause); in cancel()
425 stream.cancel(Status.CANCELLED.withCause(e).withDescription("Failed to stream message")); in sendMessage()
491 Status.CANCELLED.withCause(t).withDescription("Failed to read headers"); in headersRead()
529 Status.CANCELLED.withCause(t).withDescription("Failed to read message."); in messagesAvailable()
604 Status.CANCELLED.withCause(t).withDescription("Failed to call onReady."); in onReady()
DMessageFramer.java146 .withCause(e) in writePayload()
151 .withCause(e) in writePayload()
DCallCredentialsApplyingTransportFactory.java95 .withCause(t)); in newStream()
DDnsNameResolver.java196 Status.UNAVAILABLE.withDescription("Unable to resolve host " + host).withCause(e));
217 Status.UNAVAILABLE.withDescription("Unable to resolve host " + host).withCause(e));
DAutoConfiguredLoadBalancerFactory.java115 .withCause(e); in handleResolvedAddressGroups()
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DUtils.java171 return Status.UNKNOWN.withDescription("channel closed").withCause(extraT); in statusFromThrowable()
174 return Status.UNAVAILABLE.withDescription("io exception").withCause(t); in statusFromThrowable()
177 return Status.INTERNAL.withDescription("http2 exception").withCause(t); in statusFromThrowable()
/external/grpc-grpc-java/stub/src/main/java/io/grpc/stub/
DClientCalls.java135 .withCause(e) in blockingUnaryCall()
211 .withCause(e) in getUnchecked()
237 return Status.UNKNOWN.withDescription("unexpected exception").withCause(t) in toStatusRuntimeException()
570 throw Status.CANCELLED.withDescription("interrupted").withCause(ie).asRuntimeException(); in hasNext()
/external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/driver/
DLoadWorker.java156 responseObserver.onError(Status.INTERNAL.withCause(t).asException()); in runServer()
208 responseObserver.onError(Status.INTERNAL.withCause(t).asException());
/external/grpc-grpc-java/protobuf-nano/src/main/java/io/grpc/protobuf/nano/
DNanoUtils.java71 throw Status.INTERNAL.withDescription("Failed parsing nano proto message").withCause(ipbe) in parse()
/external/grpc-grpc-java/examples/src/main/java/io/grpc/examples/manualflowcontrol/
DManualFlowControlServer.java105 … Status.UNKNOWN.withDescription("Error handling request").withCause(throwable).asException()); in main()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DStatusTest.java50 assertSame(Status.CANCELLED, Status.CANCELLED.withCause(null)); in sameCauseReturnsSelf()
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/
DAltsProtocolNegotiator.java164 return Status.UNAVAILABLE.withCause(cause).withDescription(msg).asRuntimeException();
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/
DGoogleDefaultChannelBuilder.java90 .withCause(e); in build()
/external/grpc-grpc-java/protobuf-lite/src/main/java/io/grpc/protobuf/lite/
DProtoLiteUtils.java218 .withCause(ipbe).asRuntimeException(); in parse()
/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/
DAbstractTransportTest.java902 Status status = strippedStatus.withCause(new Exception()); in earlyServerClose_withServerHeaders()
934 Status status = strippedStatus.withCause(new Exception()); in earlyServerClose_noServerHeaders()
978 Status status = strippedStatus.withCause(new Exception()); in earlyServerClose_serverFailure()
1007 clientStream.cancel(Status.CANCELLED.withCause(status.asRuntimeException())); in earlyServerClose_serverFailure_withClientCancelOnListenerClosed()
1015 clientStream.cancel(Status.CANCELLED.withCause(status.asRuntimeException())); in earlyServerClose_serverFailure_withClientCancelOnListenerClosed()
1025 Status status = strippedStatus.withCause(new Exception()); in earlyServerClose_serverFailure_withClientCancelOnListenerClosed()
1054 Status status = Status.CANCELLED.withDescription("Nevermind").withCause(new Exception()); in clientCancel()
1174 .withCause(new Exception()); in serverCancel()
/external/grpc-grpc-java/services/src/main/java/io/grpc/services/
DChannelzProtoUtil.java467 throw Status.INTERNAL.withCause(e).asRuntimeException(); in getFuture()
469 throw Status.INTERNAL.withCause(e).asRuntimeException(); in getFuture()
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/
DOkHttpClientTransport.java588 throw Status.UNAVAILABLE.withDescription("Failed trying to connect with proxy").withCause(e) in createHttpProxySocket()
736 Status status = Status.UNAVAILABLE.withCause(failureCause); in onException()
983 Status.UNAVAILABLE.withDescription("error in frame handler").withCause(t)); in run()

12