o Revised error handling to properly notify caller of some serious trouble

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1070247 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2011-02-13 15:02:27 +00:00
parent 5550ac6663
commit e129567e92
1 changed files with 7 additions and 16 deletions

View File

@ -360,10 +360,7 @@ public class MavenProject
}
catch ( ProjectBuildingException e )
{
if ( logger != null )
{
logger.debug( "Failed to build parent project for " + getId(), e );
}
throw new IllegalStateException( "Failed to build parent project for " + getId(), e );
}
}
else if ( model.getParent() != null )
@ -378,10 +375,7 @@ public class MavenProject
}
catch ( ProjectBuildingException e )
{
if ( logger != null )
{
logger.debug( "Failed to build parent project for " + getId(), e );
}
throw new IllegalStateException( "Failed to build parent project for " + getId(), e );
}
}
}
@ -1856,10 +1850,8 @@ public class MavenProject
}
catch ( InvalidRepositoryException e )
{
if ( logger != null )
{
logger.debug( "Failed to create release distribution repository for " + getId(), e );
}
throw new IllegalStateException( "Failed to create release distribution repository for " + getId(),
e );
}
}
}
@ -1886,10 +1878,9 @@ public class MavenProject
}
catch ( InvalidRepositoryException e )
{
if ( logger != null )
{
logger.debug( "Failed to create snapshot distribution repository for " + getId(), e );
}
throw new IllegalStateException(
"Failed to create snapshot distribution repository for " + getId(),
e );
}
}
}