Class FDBExceptions


  • @API(STABLE)
    public class FDBExceptions
    extends Object
    Namespace for exceptions that wrap the underlying exceptions from the FDB API.
    • Method Detail

      • isRetriable

        public static boolean isRetriable​(@Nullable
                                          Throwable ex)
        Returns whether an exception is retriable or is caused by a retriable error. This will walk up the exception hierarchy and return true if it finds an exception that it knows to be retriable. This could occur, for example, if the given exception is caused by a retriable FDBException such as a network failure or a recovery.
        Parameters:
        ex - the exception to check for a retriable cause
        Returns:
        true if this exception was caused by something retriable and false otherwise