org.gradle.api.tasks

## 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 and Description
    `TaskInstantiationException(String message)`
    `TaskInstantiationException(String message, Throwable cause)`

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

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

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### TaskInstantiationException

          public TaskInstantiationException(String message)

    - #### TaskInstantiationException

          public TaskInstantiationException(String message,
                                    Throwable cause)