return badNodes.first();
}
} else {
String newMessage = e.getMessage() + ", bad nodes: " + badNodes.toString() + ", good nodes: " + goodNodes.toString() + ", retries: " + (retry - 1);
if (e instanceof OtpAuthException) {
OtpAuthException e1 = new OtpAuthException(newMessage);
e1.setStackTrace(e.getStackTrace());
throw (E) e1;
} else if (e instanceof IOException) {
IOException e1 = new IOException(newMessage);
e1.setStackTrace(e.getStackTrace());
throw (E) e1;
} else {
throw e;
}
}