Package org.apache.maven.plugin.compiler
Class UnsupportedVersionException
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
org.apache.maven.plugin.compiler.UnsupportedVersionException
- All Implemented Interfaces:
Serializable
Thrown when the source cannot be compiled because it required a Java version
higher than the current runtime.
- Author:
- Martin Desruisseaux
- See Also:
-
Field Summary
Fields inherited from class org.apache.maven.api.plugin.MojoException
longMessage, source
-
Constructor Summary
ConstructorsConstructorDescriptionUnsupportedVersionException
(String message) Creates a new exception with the given message.UnsupportedVersionException
(String message, Throwable cause) Creates a new exception with the given message and cause. -
Method Summary
Methods 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
-
UnsupportedVersionException
Creates a new exception with the given message.- Parameters:
message
- the short message
-
UnsupportedVersionException
Creates a new exception with the given message and cause.- Parameters:
message
- the short messagecause
- the cause of the failure, ornull
if none
-