# Class UnknownModelException

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

All Implemented Interfaces:
  `Serializable`

public class UnknownModelException extends UnsupportedVersionException
Thrown when the client is trying to acquire a model that is unknown to the Tooling API.

The exception extends `UnsupportedVersionException` only for backwards compatibility reasons.

Since:
  1.0
See Also:
  - Serialized Form

- ## Constructor Summary

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

- ## 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

  - ### UnknownModelException

    public UnknownModelException(String message)
    Creates a new `UnknownModelException`.
    Since:
      1.0

  - ### UnknownModelException

    public UnknownModelException(String message, Throwable cause)
    Creates a new `UnknownModelException`.
    Since:
      1.8