public NoHostAvailableException(Map<InetSocketAddress, Throwable> errors) { super(makeMessage(errors, MAX_ERRORS_IN_DEFAULT_MESSAGE, false, false)); this.errors = errors; }
/** * Builds a custom message for this exception. * * @param maxErrors the maximum number of errors displayed (useful to limit the size of the * message for big clusters). Beyond this limit, host names are still displayed, but not the * associated errors. Set to {@code Integer.MAX_VALUE} to display all hosts. * @param formatted whether to format the output (line break between each host). * @param includeStackTraces whether to include the full stacktrace of each host error. Note that * this automatically implies {@code formatted}. * @return the message. */ public String getCustomMessage(int maxErrors, boolean formatted, boolean includeStackTraces) { if (includeStackTraces) formatted = true; return makeMessage(errors, maxErrors, formatted, includeStackTraces); }
public NoHostAvailableException(Map<InetSocketAddress, Throwable> errors) { super(makeMessage(errors, MAX_ERRORS_IN_DEFAULT_MESSAGE, false, false)); this.errors = errors; }
public NoHostAvailableException(Map<InetSocketAddress, Throwable> errors) { super(makeMessage(errors, MAX_ERRORS_IN_DEFAULT_MESSAGE, false, false)); this.errors = errors; }
public NoHostAvailableException(Map<InetSocketAddress, Throwable> errors) { super(makeMessage(errors, MAX_ERRORS_IN_DEFAULT_MESSAGE, false, false)); this.errors = errors; }
public NoHostAvailableException(Map<InetSocketAddress, Throwable> errors) { super(makeMessage(errors)); this.errors = errors; }
/** * Builds a custom message for this exception. * * @param maxErrors the maximum number of errors displayed (useful to limit the size of the message for big clusters). Beyond this limit, * host names are still displayed, but not the associated errors. Set to {@code Integer.MAX_VALUE} to display all hosts. * @param formatted whether to format the output (line break between each host). * @param includeStackTraces whether to include the full stacktrace of each host error. Note that this automatically implies * {@code formatted}. * @return the message. */ public String getCustomMessage(int maxErrors, boolean formatted, boolean includeStackTraces) { if (includeStackTraces) formatted = true; return makeMessage(errors, maxErrors, formatted, includeStackTraces); }
/** * Builds a custom message for this exception. * * @param maxErrors the maximum number of errors displayed (useful to limit the size of the message for big clusters). Beyond this limit, * host names are still displayed, but not the associated errors. Set to {@code Integer.MAX_VALUE} to display all hosts. * @param formatted whether to format the output (line break between each host). * @param includeStackTraces whether to include the full stacktrace of each host error. Note that this automatically implies * {@code formatted}. * @return the message. */ public String getCustomMessage(int maxErrors, boolean formatted, boolean includeStackTraces) { if (includeStackTraces) formatted = true; return makeMessage(errors, maxErrors, formatted, includeStackTraces); }
/** * Builds a custom message for this exception. * * @param maxErrors the maximum number of errors displayed (useful to limit the size of the message for big clusters). Beyond this limit, * host names are still displayed, but not the associated errors. Set to {@code Integer.MAX_VALUE} to display all hosts. * @param formatted whether to format the output (line break between each host). * @param includeStackTraces whether to include the full stacktrace of each host error. Note that this automatically implies * {@code formatted}. * @return the message. */ public String getCustomMessage(int maxErrors, boolean formatted, boolean includeStackTraces) { if (includeStackTraces) formatted = true; return makeMessage(errors, maxErrors, formatted, includeStackTraces); }