Class BuildExecutionException

  • All Implemented Interfaces:
    Serializable

    public class BuildExecutionException
    extends MyBuildException
    This is needed as a wrapper to MojoExecutionException in Mojo.execute() to avoid maven-specific classes.

    We read from the documentation which applies to this exception type also: A MojoExecutionException is a fatal exception, something unrecoverable happened. You would throw a MojoExecutionException if something happens that warrants a complete stop in a build; you re trying to write to disk, but there is no space left, or you were trying to publish to a remote repository, but you can’t connect to it. Throw a MojoExecutionException if there is no chance of a build continuing; something terrible has happened and you want the build to stop and the user to see a "BUILD ERROR" message.

    A MojoExecutionException is thrown if an unexpected problem occurs (seems contradictuous). Created: Fri Sep 30 15:01:16 2016

    Version:
    1.0
    Author:
    Ernst Reissner
    See Also:
    Serialized Form
    • Constructor Detail

      • BuildExecutionException

        public BuildExecutionException​(String message)
      • BuildExecutionException

        public BuildExecutionException​(String message,
                                       Throwable cause)