Package net.storm.api.plugins.exception
Class PluginInstantiationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.storm.api.plugins.exception.PluginInstantiationException
- All Implemented Interfaces:
Serializable
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:
- Plugin class loading
- Dependency injection setup
- Plugin startup (
Plugin.startUp()) - Plugin shutdown (
Plugin.shutDown())
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 Summary
ConstructorsConstructorDescriptionPluginInstantiationException(String message) Creates a new exception with the specified message.Creates a new exception wrapping another throwable. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PluginInstantiationException
Creates a new exception with the specified message.- Parameters:
message- the detail message explaining what went wrong
-
PluginInstantiationException
Creates a new exception wrapping another throwable.- Parameters:
cause- the underlying cause of the instantiation failure
-