mirror of https://github.com/apache/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
This commit is contained in:
parent
a810d468c9
commit
ad54aa84ac
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue