From: Edwin L. Punzalan Date: Sat, 4 Feb 2006 02:33:50 +0000 (+0000) Subject: Added ResourceNotFoundException in the method signatures instead of ProxyException... X-Git-Tag: archiva-0.9-alpha-1~949 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ad54aa84ac27a73302d658cbdde88746bd873c20;p=archiva.git 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 --- 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 )