Class ExtractStatus (1.10.0)

public final class ExtractStatus

Inheritance

java.lang.Object > ExtractStatus

Static Methods

<I,O>rethrowAsRuntime(ExtractStatus.StatusFunction<I,O> function)

public static Function<I,O> <I,O>rethrowAsRuntime(ExtractStatus.StatusFunction<I,O> function)
Parameter
NameDescription
functionStatusFunction<I,O>
Returns
TypeDescription
Function<I,O>

<I>rethrowAsRuntime(ExtractStatus.StatusConsumer<I> consumer)

public static Consumer<I> <I>rethrowAsRuntime(ExtractStatus.StatusConsumer<I> consumer)
Parameter
NameDescription
consumerStatusConsumer<I>
Returns
TypeDescription
Consumer<I>

<K,V>rethrowAsRuntime(ExtractStatus.StatusBiconsumer<K,V> consumer)

public static BiConsumer<K,V> <K,V>rethrowAsRuntime(ExtractStatus.StatusBiconsumer<K,V> consumer)
Parameter
NameDescription
consumerStatusBiconsumer<K,V>
Returns
TypeDescription
BiConsumer<K,V>

<T>toClientFuture(ApiFuture<T> source)

public static ApiFuture<T> <T>toClientFuture(ApiFuture<T> source)
Parameter
NameDescription
sourceApiFuture<T>
Returns
TypeDescription
ApiFuture<T>

addFailureHandler(ApiFuture<?> future, Consumer<CheckedApiException> consumer)

public static void addFailureHandler(ApiFuture<?> future, Consumer<CheckedApiException> consumer)
Parameters
NameDescription
futureApiFuture<?>
consumerConsumer<CheckedApiException>

extract(Throwable t)

public static Optional<CheckedApiException> extract(Throwable t)
Parameter
NameDescription
tThrowable
Returns
TypeDescription
Optional<CheckedApiException>

getErrorInfoReason(CheckedApiException error)

public static String getErrorInfoReason(CheckedApiException error)
Parameter
NameDescription
errorCheckedApiException
Returns
TypeDescription
String

toCanonical(Throwable t)

public static CheckedApiException toCanonical(Throwable t)
Parameter
NameDescription
tThrowable
Returns
TypeDescription
CheckedApiException