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.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String projectId  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Field Detail

      • projectId

        private final java.lang.String projectId
    • Constructor Detail

      • ProjectBuildFailureException

        public ProjectBuildFailureException​(java.lang.String projectId,
                                            MojoFailureException cause)
    • Method Detail

      • getProjectId

        public java.lang.String getProjectId()