Home
last modified time | relevance | path

Searched refs:asException (Results 1 – 19 of 19) sorted by relevance

/external/grpc-grpc-java/auth/src/main/java/io/grpc/auth/
DClientAuthInterceptor.java100 throw Status.UNAUTHENTICATED.withDescription("Channel has no authority").asException();
111 .withCause(e).asException();
127 .withCause(e).asException();
136 .asException();
DGoogleAuthLibraryCallCredentials.java175 .withCause(e).asException(); in serviceUri()
190 "Unable to construct service URI after removing port").withCause(e).asException(); in removePort()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DStatusTest.java38 assertEquals("UNKNOWN", Status.UNKNOWN.asException().getMessage()); in verifyExceptionMessage()
40 Status.CANCELLED.withDescription("This is a test").asException().getMessage()); in verifyExceptionMessage()
DContextsTest.java196 cancellableContext.cancel(Status.DEADLINE_EXCEEDED.withDescription("foo bar").asException()); in statusFromCancelled_returnStatusAsSetOnCtx()
245 Exception e = Status.UNKNOWN.asException(); in statusFromCancelled_StatusUnknownShouldWork()
/external/grpc-grpc-java/protobuf/src/main/java/io/grpc/protobuf/
DStatusProto.java85 return toStatus(statusProto).asException(toMetadata(statusProto)); in toStatusException()
103 return toStatus(statusProto).asException(toMetadata(statusProto, metadata)); in toStatusException()
/external/grpc-grpc-java/protobuf/src/test/java/io/grpc/protobuf/
DStatusProtoTest.java133 assertNull(StatusProto.fromThrowable(status.asException())); in fromThrowable_shouldReturnNullIfTrailersAreNull()
142 assertNull(StatusProto.fromThrowable(status.asException(emptyMetadata))); in fromThrowable_shouldReturnNullIfStatusDetailsKeyIsMissing()
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DClientTransportLifecycleManager.java52 shutdownThrowable = s.asException(); in notifyShutdown()
DNettyClientTransport.java128 callback.onFailure(statusExplainingWhyTheChannelIsNull.asException()); in ping()
140 Http2Ping.notifyFailed(callback, executor, s.asException()); in ping()
DNettyClientHandler.java627 .withCause(future.cause()).asException(); in sendPingFrame()
724 throw EXHAUSTED_STREAMS_STATUS.asException(); in incrementAndGetNextStreamId()
/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/core/src/main/java/io/grpc/internal/
DFailingClientTransport.java56 callback.onFailure(error.asException()); in ping()
/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/main/java/io/grpc/
DStatus.java533 public StatusException asException() { in asException() method in Status
541 public StatusException asException(@Nullable Metadata trailers) { in asException() method in Status
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/
DOkHttpClientTransport.java583 throw Status.UNAVAILABLE.withDescription(message).asException(); in createHttpProxySocket()
588 .asException(); in createHttpProxySocket()
895 return goAwayStatus.asException(); in getPingFailure()
897 return Status.UNAVAILABLE.withDescription("Connection closed").asException(); in getPingFailure()
/external/grpc-grpc-java/grpclb/src/test/java/io/grpc/grpclb/
DGrpclbLoadBalancerTest.java559 lbResponseObserver.onError(Status.UNAVAILABLE.asException()); in loadReporting()
1084 lbResponseObserver.onError(streamError.asException()); in subtestGrpclbFallbackInitialTimeout()
1159 lbResponseObserver.onError(streamError.asException()); in subtestGrpclbFallbackInitialTimeout()
1257 lbResponseObserver.onError(Status.UNAVAILABLE.asException()); in subtestGrpclbFallbackConnectionLost()
1433 lbResponseObserver.onError(Status.UNAVAILABLE.asException()); in grpclbBalancerStreamRetry()
1455 lbResponseObserver.onError(Status.UNAVAILABLE.asException()); in grpclbBalancerStreamRetry()
1467 lbResponseObserver.onError(Status.UNAVAILABLE.asException()); in grpclbBalancerStreamRetry()
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DUtilsTest.java57 assertSame(s, Utils.statusFromThrowable(new Exception(s.asException()))); in testStatusFromThrowable()
DNettyClientTransportTest.java698 StatusException e = status.asException(); in closed()
DNettyServerHandlerTest.java327 assertEquals(e, captor.getValue().asException().getCause()); in streamErrorShouldNotCloseChannel()
/external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/qps/
DAsyncServer.java278 .withDescription("never received any requests").asException());