Class PluginInstantiationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
net.storm.api.plugins.exception.PluginInstantiationException
All Implemented Interfaces:
Serializable

public class PluginInstantiationException extends Exception
Exception thrown when a plugin fails to instantiate, start, or stop.

PluginInstantiationException is a checked exception that indicates a problem with plugin lifecycle management. This can occur during:

Example handling:


 try {
     pluginManager.startPlugin(plugin);
 } catch (PluginInstantiationException e) {
     log.error("Failed to start plugin: {}", plugin.getName(), e);
     showErrorDialog("Plugin failed to start: " + e.getMessage());
 }
 

See Also:
  • Constructor Details

    • PluginInstantiationException

      public PluginInstantiationException(String message)
      Creates a new exception with the specified message.
      Parameters:
      message - the detail message explaining what went wrong
    • PluginInstantiationException

      public PluginInstantiationException(Throwable cause)
      Creates a new exception wrapping another throwable.
      Parameters:
      cause - the underlying cause of the instantiation failure