# Class InvalidPluginException

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

All Implemented Interfaces:
  `Serializable`

public class InvalidPluginException extends GradleException
Thrown when a plugin is found to be invalid when it is loaded.

Since:
  2.1
See Also:
  - Serialized Form

- ## Constructor Summary

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

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

  - ### InvalidPluginException

    public InvalidPluginException(String message)
    Creates a new `InvalidPluginException`.
    Since:
      2.3

  - ### InvalidPluginException

    public InvalidPluginException(String message, Throwable cause)
    Creates a new `InvalidPluginException`.
    Since:
      2.1