# Class UnknownModelException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.api.GradleException
org.gradle.tooling.provider.model.UnknownModelException

All Implemented Interfaces:
  `Serializable`

public class UnknownModelException extends GradleException
Thrown when an unknown tooling model is requested.

Since:
  1.8
See Also:
  - Serialized Form

- ## Constructor Summary

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

- ## Method Summary

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