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
This commit is contained in:
Edwin L. Punzalan 2006-02-04 02:33:50 +00:00
parent a810d468c9
commit ad54aa84ac
1 changed files with 3 additions and 3 deletions

View 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 )