public final class ExtractStatus extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExtractStatus.StatusBiconsumer<K,V> |
static interface |
ExtractStatus.StatusConsumer<I> |
static interface |
ExtractStatus.StatusFunction<I,O> |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFailureHandler(com.google.api.core.ApiFuture<?> future,
Consumer<CheckedApiException> consumer) |
static Optional<CheckedApiException> |
extract(Throwable t) |
static String |
getErrorInfoReason(CheckedApiException error) |
static <K,V> BiConsumer<K,V> |
rethrowAsRuntime(ExtractStatus.StatusBiconsumer<K,V> consumer) |
static <I> Consumer<I> |
rethrowAsRuntime(ExtractStatus.StatusConsumer<I> consumer) |
static <I,O> Function<I,O> |
rethrowAsRuntime(ExtractStatus.StatusFunction<I,O> function) |
static CheckedApiException |
toCanonical(Throwable t) |
static <T> com.google.api.core.ApiFuture<T> |
toClientFuture(com.google.api.core.ApiFuture<T> source) |
public static Optional<CheckedApiException> extract(Throwable t)
public static CheckedApiException toCanonical(Throwable t)
public static String getErrorInfoReason(CheckedApiException error)
public static <T> com.google.api.core.ApiFuture<T> toClientFuture(com.google.api.core.ApiFuture<T> source)
public static void addFailureHandler(com.google.api.core.ApiFuture<?> future,
Consumer<CheckedApiException> consumer)
public static <I,O> Function<I,O> rethrowAsRuntime(ExtractStatus.StatusFunction<I,O> function)
public static <I> Consumer<I> rethrowAsRuntime(ExtractStatus.StatusConsumer<I> consumer)
public static <K,V> BiConsumer<K,V> rethrowAsRuntime(ExtractStatus.StatusBiconsumer<K,V> consumer)
Copyright © 2022 Google LLC. All rights reserved.