Class ExceptionHandler


  • public final class ExceptionHandler
    extends java.lang.Object
    Converts FailureExceptions to MojoFailureExceptions. The MojoFailureException will stop the maven build
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void throwMojoFailureException()
      Throw a MojoFailureException from the failure exception
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExceptionHandler

        public ExceptionHandler​(FailureException fex)
        Creates an ExceptionHandler with the exception to handle
    • Method Detail

      • throwMojoFailureException

        public void throwMojoFailureException()
                                       throws org.apache.maven.plugin.MojoFailureException
        Throw a MojoFailureException from the failure exception
        Throws:
        org.apache.maven.plugin.MojoFailureException