PR: MRM-43

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
This commit is contained in:
Edwin L. Punzalan 2006-02-04 02:44:43 +00:00
parent 5a63d9fc3b
commit 70e1d9ddb3
2 changed files with 6 additions and 8 deletions

View File

@ -69,7 +69,7 @@ public DefaultProxyManager( ProxyConfiguration configuration )
} }
public File get( String path ) public File get( String path )
throws ProxyException throws ProxyException, ResourceDoesNotExistException
{ {
//@todo use wagon for cache use file:// as URL //@todo use wagon for cache use file:// as URL
String cachePath = config.getRepositoryCachePath(); String cachePath = config.getRepositoryCachePath();
@ -82,7 +82,7 @@ public File get( String path )
} }
public File getRemoteFile( String path ) public File getRemoteFile( String path )
throws ProxyException throws ProxyException, ResourceDoesNotExistException
{ {
try try
{ {
@ -109,10 +109,6 @@ else if ( path.endsWith( ".md5" ) || path.endsWith( ".sha1" ) )
{ {
throw new ProxyException( e.getMessage(), e ); throw new ProxyException( e.getMessage(), e );
} }
catch ( ResourceDoesNotExistException e )
{
throw new ProxyException( e.getMessage(), e );
}
} }
private File getArtifactFile( Artifact artifact ) private File getArtifactFile( Artifact artifact )

View File

@ -16,6 +16,8 @@
* limitations under the License. * limitations under the License.
*/ */
import org.apache.maven.wagon.ResourceDoesNotExistException;
import java.io.File; import java.io.File;
/** /**
@ -24,8 +26,8 @@
public interface ProxyManager public interface ProxyManager
{ {
public File get( String path ) public File get( String path )
throws ProxyException; throws ProxyException, ResourceDoesNotExistException;
public File getRemoteFile( String path ) public File getRemoteFile( String path )
throws ProxyException; throws ProxyException, ResourceDoesNotExistException;
} }