Class OutOfRetriesException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.broadinstitute.http.nio.OutOfRetriesException
All Implemented Interfaces:
Serializable

public class OutOfRetriesException extends IOException
Indicates a failure which could be retried but was not because all allowed retries were exhausted.
See Also:
  • Field Details

    • retries

      private final int retries
      number of retries attempted before giving up
    • totalWaitTime

      private final Duration totalWaitTime
      total wait time between retries
  • Constructor Details

    • OutOfRetriesException

      public OutOfRetriesException(int retries, Duration totalWaitTime, Throwable mostRecentFailureReason)
      Parameters:
      retries - the number of times the error was retried
      totalWaitTime - how long we waited between all the given retries
      mostRecentFailureReason - the most recently thrown exception
  • Method Details

    • getRetries

      public int getRetries()
      Returns:
      the number of times this was retried before giving up
    • getTotalWaitTime

      public Duration getTotalWaitTime()
      Returns:
      the total amount of wait time between retries before giving up