Tabnine Logo
RetryException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.github.rholder.retry.RetryException
constructor

Best Java code snippets using com.github.rholder.retry.RetryException.<init> (Showing top 3 results out of 315)

origin: rhuffman/re-retrying

/**
 * Throw the Attempt's exception, if it has one, wrapped in a RetryException. Otherwise,
 * return the attempt's result.
 *
 * @param attempt An attempt that was made by invoking the call
 * @param <T>     The type of the attempt
 * @return The result of the attempt
 * @throws RetryException If the attempt has an exception
 */
private <T> T getOrThrow(Attempt<T> attempt) throws RetryException {
  if (attempt.hasException()) {
    throw new RetryException(attempt);
  }
  return attempt.get();
}
origin: com.github.rholder/guava-retrying

  throw new RetryException(attemptNumber, attempt);
} else {
  long sleepTime = waitStrategy.computeSleepTime(attempt);
  } catch (InterruptedException e) {
    Thread.currentThread().interrupt();
    throw new RetryException(attemptNumber, attempt);
origin: rhuffman/re-retrying

  throw new RetryException(attempt);
} else {
  long sleepTime = waitStrategy.computeSleepTime(attempt);
com.github.rholder.retryRetryException<init>

Javadoc

If the last Attempt had an Exception, ensure it is available in the stack trace.

Popular methods of RetryException

  • getLastFailedAttempt
    Returns the last failed attempt
  • getCause
  • getNumberOfFailedAttempts
    Returns the number of failed attempts
  • getMessage

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • getSystemService (Context)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now