Class ExtractStatus (1.14.8)

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
Name Description
function StatusFunction<I,O>
Returns
Type Description
Function<I,O>

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

public static Consumer<I> <I>rethrowAsRuntime(ExtractStatus.StatusConsumer<I> consumer)
Parameter
Name Description
consumer StatusConsumer<I>
Returns
Type Description
Consumer<I>

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

public static BiConsumer<K,V> <K,V>rethrowAsRuntime(ExtractStatus.StatusBiconsumer<K,V> consumer)
Parameter
Name Description
consumer StatusBiconsumer<K,V>
Returns
Type Description
BiConsumer<K,V>

<T>toClientFuture(ApiFuture<T> source)

public static ApiFuture<T> <T>toClientFuture(ApiFuture<T> source)
Parameter
Name Description
source ApiFuture<T>
Returns
Type Description
ApiFuture<T>

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

public static void addFailureHandler(ApiFuture<?> future, Consumer<CheckedApiException> consumer)
Parameters
Name Description
future ApiFuture<?>
consumer Consumer<CheckedApiException>

extract(Throwable t)

public static Optional<CheckedApiException> extract(Throwable t)
Parameter
Name Description
t Throwable
Returns
Type Description
Optional<CheckedApiException>

getErrorInfoReason(CheckedApiException error)

public static String getErrorInfoReason(CheckedApiException error)
Parameter
Name Description
error CheckedApiException
Returns
Type Description
String

toCanonical(Throwable t)

public static CheckedApiException toCanonical(Throwable t)
Parameter
Name Description
t Throwable
Returns
Type Description
CheckedApiException