private static void handleException(ClientRequestContext ctx, CompletableFuture<RpcResponse> future,
                                        Throwable cause, boolean endRequestLog) {
        future.completeExceptionally(cause);
        if (endRequestLog) {
            ctx.logBuilder().endRequest(cause);
        }
        ctx.logBuilder().endResponse(cause);
    }
Creates a new instance that decorates the specified {@link RpcClient}.
core/src/main/java/com/linecorp/armeria/client/retry/RetryingRpcClient.java