}
catch ( IOException e )
{
if ( !remoteFile.exists() )
{
download.setException( new ArtifactNotFoundException( download.getArtifact(), repository ) );
}
else
{
download.setException( new ArtifactTransferException( download.getArtifact(), repository, e ) );
}