Examples of DownloadFailedException


Examples of org.apache.maven.bootstrap.download.DownloadFailedException

        if (!directory.exists()) {
          directory.mkdirs();
        }

        if (!getRemoteArtifact(dep, destinationFile) && !destinationFile.exists()) {
          throw new DownloadFailedException(dep);
        }

        downloadedArtifacts.put(dependencyConflictId, dep);
      } else {
        Dependency d = downloadedArtifacts.get(dependencyConflictId);
View Full Code Here

Examples of org.owasp.dependencycheck.utils.DownloadFailedException

        try {
            updates = retrieveCurrentTimestampsFromWeb();
        } catch (InvalidDataException ex) {
            final String msg = "Unable to retrieve valid timestamp from nvd cve downloads page";
            LOGGER.log(Level.FINE, msg, ex);
            throw new DownloadFailedException(msg, ex);
        } catch (InvalidSettingException ex) {
            LOGGER.log(Level.FINE, "Invalid setting found when retrieving timestamps", ex);
            throw new DownloadFailedException("Invalid settings", ex);
        }

        if (updates == null) {
            throw new DownloadFailedException("Unable to retrieve the timestamps of the currently published NVD CVE data");
        }
        if (!properties.isEmpty()) {
            try {
                final long lastUpdated = Long.parseLong(properties.getProperty(DatabaseProperties.LAST_UPDATED, "0"));
                final Date now = new Date();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.