Interface FDBDatabase.ExceptionMapper
-
- Enclosing class:
- FDBDatabase
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface FDBDatabase.ExceptionMapper
Function for mapping an underlying exception to a synchronous failure. It is possible for this function to be called with the result of calling it previously. Therefore, if wrapping exceptions with some application-specific exception class, it is best to check for being passed anex
that is already of that class and in that case just return it.- See Also:
FDBDatabase.setAsyncToSyncExceptionMapper(com.apple.foundationdb.record.provider.foundationdb.FDBDatabase.ExceptionMapper)
,FDBDatabase.asyncToSync(com.apple.foundationdb.record.provider.foundationdb.FDBStoreTimer, com.apple.foundationdb.record.provider.common.StoreTimer.Wait, java.util.concurrent.CompletableFuture<T>)
,FDBExceptions.wrapException(Throwable)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RuntimeException
apply(Throwable ex, StoreTimer.Event event)
-
-
-
Method Detail
-
apply
RuntimeException apply(@Nonnull Throwable ex, @Nullable StoreTimer.Event event)
-
-