Class ProjectBuildFailureException

  • All Implemented Interfaces:
    java.io.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 that caused the failure.
    Author:
    jdcasey
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ProjectBuildFailureException​(java.lang.String projectId, org.apache.maven.plugin.MojoFailureException cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.maven.plugin.MojoFailureException getMojoFailureException()  
      java.lang.String getProjectId()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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​(java.lang.String projectId,
                                            org.apache.maven.plugin.MojoFailureException cause)
    • Method Detail

      • getMojoFailureException

        public org.apache.maven.plugin.MojoFailureException getMojoFailureException()
      • getProjectId

        public java.lang.String getProjectId()