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

public class UnsupportedVersionException extends CompilationFailureException
Thrown when the source cannot be compiled because it required a Java version higher than the current runtime.
Author:
Martin Desruisseaux
See Also:
  • Constructor Details

    • UnsupportedVersionException

      public UnsupportedVersionException(String message)
      Creates a new exception with the given message.
      Parameters:
      message - the short message
    • UnsupportedVersionException

      public UnsupportedVersionException(String message, Throwable cause)
      Creates a new exception with the given message and cause.
      Parameters:
      message - the short message
      cause - the cause of the failure, or null if none