Class CompilationFailureException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    CompilationFailureException

    public class CompilationFailureException
    extends org.apache.maven.plugin.MojoFailureException
    Since:
    2.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String LS  
      • Fields inherited from class org.apache.maven.plugin.AbstractMojoExecutionException

        longMessage, source
    • Constructor Summary

      Constructors 
      Constructor Description
      CompilationFailureException​(java.util.List<org.codehaus.plexus.compiler.CompilerMessage> messages)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String longMessage​(java.util.List<org.codehaus.plexus.compiler.CompilerMessage> messages)  
      static java.lang.String shortMessage​(java.util.List<org.codehaus.plexus.compiler.CompilerMessage> messages)
      Short message will have the error message if there's only one, useful for errors forking the compiler
      • Methods inherited from class org.apache.maven.plugin.AbstractMojoExecutionException

        getLongMessage, getSource
      • 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

      • LS

        private static final java.lang.String LS
    • Constructor Detail

      • CompilationFailureException

        public CompilationFailureException​(java.util.List<org.codehaus.plexus.compiler.CompilerMessage> messages)
    • Method Detail

      • longMessage

        public static java.lang.String longMessage​(java.util.List<org.codehaus.plexus.compiler.CompilerMessage> messages)
      • shortMessage

        public static java.lang.String shortMessage​(java.util.List<org.codehaus.plexus.compiler.CompilerMessage> messages)
        Short message will have the error message if there's only one, useful for errors forking the compiler
        Parameters:
        messages - the messages
        Returns:
        the short error message
        Since:
        2.0.2