Class NoOpPluginExceptionInterception

java.lang.Object
com.atlassian.plugin.exception.NoOpPluginExceptionInterception
All Implemented Interfaces:
PluginExceptionInterception

public class NoOpPluginExceptionInterception extends Object implements PluginExceptionInterception
The equivalent of the old plugin system behaviour
  • Field Details

  • Method Details

    • onEnableException

      public boolean onEnableException(Plugin plugin, Exception pluginException)
      Description copied from interface: PluginExceptionInterception
      This 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:
      onEnableException in interface PluginExceptionInterception
      Parameters:
      plugin - the plugin that has failed to be enabled
      pluginException - 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