- 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 an ex
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)