# Class PluginInstantiationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.api.GradleException
org.gradle.api.plugins.PluginInstantiationException

All Implemented Interfaces:
  `Serializable`

public class PluginInstantiationException extends GradleException
A `PluginInstantiationException` is thrown when a plugin cannot be instantiated.

Since:
  0.7
See Also:
  - Serialized Form

- ## Constructor Summary

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

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

  - ### PluginInstantiationException

    public PluginInstantiationException(String message)
    Creates a new `PluginInstantiationException`.
    Since:
      0.7

  - ### PluginInstantiationException

    public PluginInstantiationException(String message, Throwable cause)
    Creates a new `PluginInstantiationException`.
    Since:
      0.7