Tabnine Logo
CommonUtils.throwableToString
Code IndexAdd Tabnine to your IDE (free)

How to use
throwableToString
method
in
com.hazelcast.simulator.utils.CommonUtils

Best Java code snippets using com.hazelcast.simulator.utils.CommonUtils.throwableToString (Showing top 5 results out of 315)

origin: com.hazelcast.simulator/simulator

public FailureOperation(String message, FailureType type, SimulatorAddress workerAddress, String agentAddress,
            Throwable cause) {
  this(message, type, workerAddress, agentAddress, null, null, null, throwableToString(cause));
}
origin: com.hazelcast.simulator/simulator

public static void exitWithError(Logger logger, String msg, Throwable throwable) {
  if (throwable instanceof CommandLineExitException) {
    String logMessage = throwable.getMessage();
    if (throwable.getCause() != null) {
      String throwableString = throwableToString(throwable.getCause());
      logMessage += NEW_LINE + throwableString;
    }
    logger.fatal(logMessage);
  } else {
    String throwableString = throwableToString(throwable);
    logger.fatal(msg + NEW_LINE + throwableString);
  }
  exit(1);
}
origin: com.hazelcast.simulator/utils

public static void exitWithError(Logger logger, String msg, Throwable throwable) {
  if (throwable instanceof CommandLineExitException) {
    String logMessage = throwable.getMessage();
    if (throwable.getCause() != null) {
      String throwableString = throwableToString(throwable.getCause());
      logMessage += NEW_LINE + throwableString;
    }
    logger.fatal(logMessage);
  } else {
    String throwableString = throwableToString(throwable);
    logger.fatal(msg + NEW_LINE + throwableString);
  }
  exit(1);
}
origin: com.hazelcast.simulator/utils

writeText(testId + NEW_LINE + throwableToString(cause), tmpFile);
origin: com.hazelcast.simulator/simulator

writeText(testId + NEW_LINE + throwableToString(cause), tmpFile);
com.hazelcast.simulator.utilsCommonUtilsthrowableToString

Popular methods of CommonUtils

  • sleepMillis
  • sleepSeconds
  • closeQuietly
  • exitWithError
  • exit
  • rethrow
  • sleepMillisThrowException
  • sleepNanos
  • await
  • awaitTermination
  • getElapsedSeconds
  • getSimulatorVersion
  • getElapsedSeconds,
  • getSimulatorVersion,
  • joinThread,
  • sleepRandomNanos,
  • sleepTimeUnit,
  • sleepUntilMs

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JComboBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top PhpStorm 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