# Class TaskInstantiationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.api.GradleException
org.gradle.api.tasks.TaskInstantiationException

All Implemented Interfaces:
  `Serializable`

public class TaskInstantiationException extends GradleException
A `TaskInstantiationException` is thrown when a task cannot be instantiated for some reason.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TaskInstantiationException(String message)`
  `TaskInstantiationException(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

  - ### TaskInstantiationException

    public TaskInstantiationException(String message)

  - ### TaskInstantiationException

    public TaskInstantiationException(String message, Throwable cause)