org.apache.maven
Class ProjectBuildFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.BuildFailureException
              extended by org.apache.maven.ProjectBuildFailureException
All Implemented Interfaces:
Serializable

public class ProjectBuildFailureException
extends BuildFailureException

Exception which occurs when a normal (i.e. non-aggregator) mojo fails to execute. In this case, the mojo failed while executing against a particular project instance, so we can wrap the MojoFailureException with context information including projectId and the MojoBinding that caused the failure.

Author:
jdcasey
See Also:
Serialized Form

Constructor Summary
ProjectBuildFailureException(String projectId, MojoFailureException cause)
           
 
Method Summary
 MojoFailureException getMojoFailureException()
           
 String getProjectId()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectBuildFailureException

public ProjectBuildFailureException(String projectId,
                                    MojoFailureException cause)
Method Detail

getMojoFailureException

public MojoFailureException getMojoFailureException()

getProjectId

public String getProjectId()


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.