Package org.apache.maven.plugin.compiler
Class CompilationFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.maven.api.services.MavenException
org.apache.maven.api.plugin.MojoException
org.apache.maven.plugin.compiler.CompilationFailureException
- All Implemented Interfaces:
Serializable
public class CompilationFailureException
extends org.apache.maven.api.plugin.MojoException
- Since:
- 2.0
- Author:
- Jason van Zyl
- See Also:
-
Field Summary
Fields inherited from class org.apache.maven.api.plugin.MojoException
longMessage, source
-
Constructor Summary
ConstructorDescriptionCompilationFailureException
(List<org.codehaus.plexus.compiler.CompilerMessage> messages) Wrap error messages from the compiler -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 compilerMethods inherited from class org.apache.maven.api.plugin.MojoException
getLongMessage, getSource
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CompilationFailureException
Wrap error messages from the compiler- Parameters:
messages
- the messages, not null- Since:
- 2.0
-
-
Method Details
-
longMessage
Long message will have all messages, one per line- Parameters:
messages
- the messages, not null- Returns:
- the long error message
- Since:
- 2.0
-
shortMessage
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
-