]> source.dussan.org Git - archiva.git/commitdiff
PR: MRM-43
authorEdwin L. Punzalan <epunzalan@apache.org>
Sat, 4 Feb 2006 02:44:43 +0000 (02:44 +0000)
committerEdwin L. Punzalan <epunzalan@apache.org>
Sat, 4 Feb 2006 02:44:43 +0000 (02:44 +0000)
Added ResourceDoesNotExistException in interface and implementation

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@374824 13f79535-47bb-0310-9956-ffa450edef68

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

index f65df6a9a2400ff1bf1a8e68010b6046d00d609e..c9a32cc90df910d2ae80f52e2852b33d6f049f8c 100644 (file)
@@ -69,7 +69,7 @@ public class DefaultProxyManager
     }
 
     public File get( String path )
-        throws ProxyException
+        throws ProxyException, ResourceDoesNotExistException
     {
         //@todo use wagon for cache use file:// as URL
         String cachePath = config.getRepositoryCachePath();
@@ -82,7 +82,7 @@ public class DefaultProxyManager
     }
 
     public File getRemoteFile( String path )
-        throws ProxyException
+        throws ProxyException, ResourceDoesNotExistException
     {
         try
         {
@@ -109,10 +109,6 @@ public class DefaultProxyManager
         {
             throw new ProxyException( e.getMessage(), e );
         }
-        catch ( ResourceDoesNotExistException e )
-        {
-            throw new ProxyException( e.getMessage(), e );
-        }
     }
 
     private File getArtifactFile( Artifact artifact )
index 9463fd108e1b48e23f3aeced6a31bba167e922aa..1901da33c3165ba3640a117ab12eb5ba9a722d56 100644 (file)
@@ -16,6 +16,8 @@ package org.apache.maven.repository.proxy;
  * limitations under the License.
  */
 
+import org.apache.maven.wagon.ResourceDoesNotExistException;
+
 import java.io.File;
 
 /**
@@ -24,8 +26,8 @@ import java.io.File;
 public interface ProxyManager
 {
     public File get( String path )
-        throws ProxyException;
+        throws ProxyException, ResourceDoesNotExistException;
 
     public File getRemoteFile( String path )
-        throws ProxyException;
+        throws ProxyException, ResourceDoesNotExistException;
 }