public FailureOperation(String message, FailureType type, SimulatorAddress workerAddress, String agentAddress, Throwable cause) { this(message, type, workerAddress, agentAddress, null, null, null, throwableToString(cause)); }
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); }
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); }
writeText(testId + NEW_LINE + throwableToString(cause), tmpFile);
writeText(testId + NEW_LINE + throwableToString(cause), tmpFile);