From ad54aa84ac27a73302d658cbdde88746bd873c20 Mon Sep 17 00:00:00 2001 From: "Edwin L. Punzalan" Date: Sat, 4 Feb 2006 02:33:50 +0000 Subject: [PATCH] Added ResourceNotFoundException in the method signatures instead of ProxyException when a remote file isn't found in any of the repositories. git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@374819 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/repository/proxy/DefaultProxyManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java b/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java index 4004f4f33..28a962634 100644 --- a/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java +++ b/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java @@ -133,13 +133,13 @@ public class DefaultProxyManager } private File getRepositoryFile( String path ) - throws ProxyException + throws ResourceDoesNotExistException, ProxyException { return getRepositoryFile( path, true ); } private File getRepositoryFile( String path, boolean useChecksum ) - throws ProxyException + throws ResourceDoesNotExistException, ProxyException { ArtifactRepository cache = config.getRepositoryCache(); File target = new File( cache.getBasedir(), path ); @@ -214,7 +214,7 @@ public class DefaultProxyManager } } - throw new ProxyException( "Could not find " + path + " in any of the repositories." ); + throw new ResourceDoesNotExistException( "Could not find " + path + " in any of the repositories." ); } private Map prepareChecksums( Wagon wagon )