# Class UnsupportedVersionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.tooling.GradleConnectionException
org.gradle.tooling.UnsupportedVersionException

All Implemented Interfaces:
  `Serializable`

Direct Known Subclasses:
  `UnknownModelException, UnsupportedOperationConfigurationException`

public class UnsupportedVersionException extends GradleConnectionException
Thrown when the target Gradle version does not support a particular feature.

Since:
  1.0
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UnsupportedVersionException(String message)`
  Creates a new `UnsupportedVersionException`.
  `UnsupportedVersionException(String message, Throwable cause)`
  Creates a new `UnsupportedVersionException`.

- ## Method Summary

  ### Methods inherited from class GradleConnectionException

  `getFailures`

  ### Methods inherited from class Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### UnsupportedVersionException

    public UnsupportedVersionException(String message)
    Creates a new `UnsupportedVersionException`.
    Since:
      0.9.2

  - ### UnsupportedVersionException

    public UnsupportedVersionException(String message, Throwable cause)
    Creates a new `UnsupportedVersionException`.
    Since:
      1.0