Class UnknownPluginException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.api.GradleException
org.gradle.api.InvalidUserDataException
org.gradle.api.plugins.UnknownPluginException
- All Implemented Interfaces:
Serializable
A
UnknownPluginException is thrown when an unknown plugin id is provided.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnknownPluginException(String message) UnknownPluginException(String message, @Nullable String pluginId) Creates an exception with the given message, carrying the id of the plugin that could not be found. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the id of the plugin that could not be found, if it is known.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownPluginException
-
UnknownPluginException
Creates an exception with the given message, carrying the id of the plugin that could not be found.- Parameters:
message- the exception messagepluginId- the id of the plugin that could not be found, ornullif it is not known- Since:
- 9.7.0
-
-
Method Details
-
getPluginId
Returns the id of the plugin that could not be found, if it is known.- Returns:
- the missing plugin id, or
nullif it is not known - Since:
- 9.7.0
-