]> source.dussan.org Git - archiva.git/commitdiff
Added ResourceNotFoundException in the method signatures instead of ProxyException...
authorEdwin L. Punzalan <epunzalan@apache.org>
Sat, 4 Feb 2006 02:33:50 +0000 (02:33 +0000)
committerEdwin L. Punzalan <epunzalan@apache.org>
Sat, 4 Feb 2006 02:33:50 +0000 (02:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@374819 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java

index 4004f4f3378d7f18da45f8af43d251a3c698cc48..28a9626347d6e0b207f1b585eb260f16aa70d149 100644 (file)
@@ -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 )