Class FailureException

  • All Implemented Interfaces:
    java.io.Serializable

    public class FailureException
    extends java.lang.RuntimeException
    An exception occurring during the execution of the plugin. Throwing this exception should cause a "BUILD FAILURE" message to be displayed in Maven.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String UNSUPPORTED_ENCODING  
    • Constructor Summary

      Constructors 
      Constructor Description
      FailureException​(java.lang.String msg)
      Create a new instance with a message describing what happened
      FailureException​(java.lang.String msg, java.lang.Throwable cause)
      Create a new instance with message and what caused the failure
    • Method Summary

      • 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

      • UNSUPPORTED_ENCODING

        public static final java.lang.String UNSUPPORTED_ENCODING
        See Also:
        Constant Field Values
    • Constructor Detail

      • FailureException

        public FailureException​(java.lang.String msg,
                                java.lang.Throwable cause)
        Create a new instance with message and what caused the failure
      • FailureException

        public FailureException​(java.lang.String msg)
        Create a new instance with a message describing what happened