# Class UnknownTaskException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.api.GradleException
org.gradle.api.UnknownDomainObjectException
org.gradle.api.UnknownTaskException

All Implemented Interfaces:
  `Serializable`

public class UnknownTaskException extends UnknownDomainObjectException

An `UnknownTaskException` is thrown when a task referenced by path cannot be found.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UnknownTaskException(String message)`
  `UnknownTaskException(String message, Throwable cause)`

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

  - ### UnknownTaskException

    public UnknownTaskException(String message)

  - ### UnknownTaskException

    public UnknownTaskException(String message, Throwable cause)