artEx = new ArtifactTransferException( transfer.getArtifact(), repository, e );
}
transfer.setException( artEx );
break;
case METADATA:
MetadataTransferException mdEx;
if ( Direction.DOWNLOAD.equals( direction ) )
{
mdEx = new MetadataNotFoundException( transfer.getMetadata(), repository );
}
else
{
mdEx = new MetadataTransferException( transfer.getMetadata(), repository, e );
}
transfer.setException( mdEx );
break;
}
}
catch ( Throwable t )
{
logger.debug( t.getMessage(), t );
switch ( transfer.getType() )
{
case ARTIFACT:
transfer.setException( new ArtifactTransferException( transfer.getArtifact(), repository, t ) );
break;
case METADATA:
transfer.setException( new MetadataTransferException( transfer.getMetadata(), repository, t ) );
break;
}
}
finally
{