if (s.equals("code:")) {
errorCode = splitString[i + 1];
break;
}
}
HTTPError theError=new HTTPError(Integer.parseInt(errorCode),e.getMessage());
last_error=theError;
if(theError.getErrorCode()==403||theError.getErrorCode()==404)
{
break;
}
}
io.writeLine("Failed with " + e.getClass().getName() + ". Retrying " + (retries - count) + " more times");