Class RetryableException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EntityAlreadyExistsException, OptimisticLockException

public abstract class RetryableException extends RepositoryException
Base class for retryable database access exceptions.
See Also:
  • Constructor Details

    • RetryableException

      protected RetryableException(String message, RetryPolicy retryPolicy, Throwable cause)
    • RetryableException

      protected RetryableException(String message, RetryPolicy retryPolicy)
    • RetryableException

      protected RetryableException(String message, Throwable cause)
    • RetryableException

      protected RetryableException(String message)
  • Method Details

    • sleep

      public void sleep(int attempt)
      Sleeps for the recommended amount of time before retrying.
      Parameters:
      attempt - request attempt count (starting from 1)
    • rethrow

      public RepositoryException rethrow()