Package org.apache.maven.plugin.compiler
Class CompilationFailureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.maven.plugin.AbstractMojoExecutionException
-
- org.apache.maven.plugin.MojoFailureException
-
- org.apache.maven.plugin.compiler.CompilationFailureException
-
- All Implemented Interfaces:
Serializable
public class CompilationFailureException extends MojoFailureException
- Since:
- 2.0
- Author:
- Jason van Zyl
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.maven.plugin.AbstractMojoExecutionException
longMessage, source
-
-
Constructor Summary
Constructors Constructor Description CompilationFailureException(List<org.codehaus.plexus.compiler.CompilerMessage> messages)
Wrap error messages from the compiler
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
longMessage(List<org.codehaus.plexus.compiler.CompilerMessage> messages)
Long message will have all messages, one per linestatic String
shortMessage(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
-
-
-
-
Constructor Detail
-
CompilationFailureException
public CompilationFailureException(List<org.codehaus.plexus.compiler.CompilerMessage> messages)
Wrap error messages from the compiler- Parameters:
messages
- the messages, not null- Since:
- 2.0
-
-
Method Detail
-
longMessage
public static String longMessage(List<org.codehaus.plexus.compiler.CompilerMessage> messages)
Long message will have all messages, one per line- Parameters:
messages
- the messages, not null- Returns:
- the long error message
- Since:
- 2.0
-
shortMessage
public static String shortMessage(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, not null- Returns:
- the short error message
- Since:
- 2.0.2
-
-