if ( get.getThrowable() != null) if (get.getThrowable() instanceof IOException) throw (IOException) get.getThrowable(); if (get.getThrowable() instanceof AccessControlException) throw (AccessControlException) get.getThrowable(); if (get.getThrowable() instanceof FileNotFoundException) throw new ResourceNotFoundException(get.getThrowable().getMessage(), get.getThrowable()); throw new RuntimeException("unexpected failure download certificate", get.getThrowable());
public ExecutionPhase getPhase(String jobID) throws JobNotFoundException, JobPersistenceException { try { URL u = new URL(baseURL.toExternalForm() + "/" + jobID); ByteArrayOutputStream out = new ByteArrayOutputStream(); HttpDownload get = new HttpDownload(u, out); get.setUserAgent(this.getClass().getName()); get.run(); if (get.getThrowable() != null) { if (get.getThrowable().getMessage().contains("not found")) throw new JobNotFoundException("not found: " + jobID); throw new JobPersistenceException("failed to get " + jobID, get.getThrowable()); } String phase = out.toString().trim(); log.debug("phase: " + phase); ExecutionPhase ret = ExecutionPhase.toValue(phase); return ret; } catch(MalformedURLException bug) { throw new RuntimeException("BUG - failed to create valid URL", bug); } }
if (get.getThrowable() != null) log.debug("FAIL", get.getThrowable()); throw new CheckException(name + " " + url.toExternalForm() + " test failed: " + get.getThrowable());
if (get.getThrowable() != null) throw new RuntimeException("Unable to get job because " + get.getThrowable().getLocalizedMessage());
VOSClientUtil.checkFailure(get.getThrowable());
if (get.getThrowable() != null) throw new RuntimeException("Unable to get Job because " + get.getThrowable().getLocalizedMessage());
ret.throwable = doit.getThrowable(); ret.responseCode = doit.getResponseCode(); ret.contentType = doit.getContentType();
if (download.getThrowable() != null) .getThrowable());
HttpDownload get = new HttpDownload(url, bos); get.run(); if (get.getThrowable() != null) { return new FailIterator(uri, "failed to resolve URI: " + get.getThrowable().getMessage());
if (get.getThrowable() != null) log.debug("error calling get user", get.getThrowable()); message = get.getThrowable().getMessage();
if (get.getThrowable() != null) log.debug("error calling get user", get.getThrowable()); message = get.getThrowable().getMessage();
get.run(); Throwable t1 = get.getThrowable(); // report this fail if password fails if (get.getThrowable() != null) { if (get.getResponseCode() == 401 // no cookie or cookie invalid || get.getResponseCode() == 403) { // no cookie and private node get = new HttpDownload(url, bos); get.run(); if (get.getThrowable() == null) {
get.run(); if (get.getThrowable() != null) { Assert.fail("failed to check phase for " + jobURL + " reason: " + get.getThrowable());
if (download.getThrowable() == null) throw new IOException("failed to download file", firstDownload.getThrowable());
if (get.getThrowable() != null) log.debug("Unable to run the job", get.getThrowable()); throw new RuntimeException("Unable to run the job because " + get.getThrowable().getMessage());
transfer.run(); Throwable error = transfer.getThrowable(); if (error != null)
httpDownload.run(); final Throwable error = httpDownload.getThrowable();
transfer.run(); Throwable error = transfer.getThrowable(); if (error != null)
httpDownload.run(); final Throwable error = httpDownload.getThrowable();
transfer.run(); Throwable error = transfer.getThrowable(); if (error != null)