Tabnine Logo
RetryException.getMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
getMessage
method
in
com.github.rholder.retry.RetryException

Best Java code snippets using com.github.rholder.retry.RetryException.getMessage (Showing top 2 results out of 315)

origin: ICOnator/ICOnator-backend

@Override
public List<Identification> fetchIdentifications() {
  List<Identification> identificationList = new ArrayList<>();
  String authToken = null;
  try {
    authToken = login();
  } catch (ExecutionException ee) {
    LOG.error("Error while logging in", ee.getMessage());
  } catch (RetryException re) {
    LOG.error("Reached max number of retries while logging in", re.getMessage());
  }
  if(authToken != null) {
    try {
      identificationList = getIdentifications(authToken);
    } catch (ExecutionException ee) {
      LOG.error("Error while getting identifications", ee.getMessage());
    } catch (RetryException re) {
      LOG.error("Reached maximum number of retries while getting identifications", re.getMessage());
    }
  } else {
    LOG.error("AuthToken still null after login"); //Should never happen
  }
  return identificationList;
}

origin: wyh-spring-ecosystem-student/spring-boot-student

  logger.error(e.getMessage(), e);
} catch (RetryException e) {
  logger.error(e.getMessage(), e);
com.github.rholder.retryRetryExceptiongetMessage

Popular methods of RetryException

  • getLastFailedAttempt
    Returns the last failed attempt
  • getCause
  • getNumberOfFailedAttempts
    Returns the number of failed attempts
  • <init>
    If the last Attempt had an Exception, ensure it is available in the stack trace.

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ImageIO (javax.imageio)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Github Copilot alternatives
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