Package com.atlassian.plugin.exception
Class NoOpPluginExceptionInterception
java.lang.Object
com.atlassian.plugin.exception.NoOpPluginExceptionInterception
- All Implemented Interfaces:
PluginExceptionInterception
The equivalent of the old plugin system behaviour
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanonEnableException(Plugin plugin, Exception pluginException) This is called when a plugin cant be enabled because an exception has been thrown.
-
Field Details
-
NOOP_INTERCEPTION
-
-
Method Details
-
onEnableException
Description copied from interface:PluginExceptionInterceptionThis is called when a plugin cant be enabled because an exception has been thrown.This is an intercept point for the host to do something meaningful like better logging or failed plugin tracking.
It must NOT propagate the exception out of this block because this will stop the plugin system in general for starting.
- Specified by:
onEnableExceptionin interfacePluginExceptionInterception- Parameters:
plugin- the plugin that has failed to be enabledpluginException- the exception that was thrown during plugin enable- Returns:
- true if the underlying plugin system should log a message. If this is false then the assumption is that host application has done the appropriate logging
-