Package dev.siea.jonion.exceptions
Class PluginLoadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.siea.jonion.exceptions.PluginException
dev.siea.jonion.exceptions.PluginLoadException
- All Implemented Interfaces:
Serializable
Thrown when a plugin cannot be loaded or instantiated (e.g. class not found,
instantiation error, or dependency failure).
Used by PluginWrapper.load() and
PluginFactory.createPlugin(dev.siea.jonion.descriptor.PluginDescriptor, dev.siea.jonion.loader.CustomClassLoader) when the plugin main class
cannot be loaded or its constructor fails.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPluginLoadException(String message, Exception e) Constructs a new PluginLoadException with the specified detail message and cause.PluginLoadException(String message, Throwable cause) Constructs a new PluginLoadException with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PluginLoadException
Constructs a new PluginLoadException with the specified detail message and cause.- Parameters:
message- the detail messagee- the cause
-
PluginLoadException
Constructs a new PluginLoadException with the specified detail message and cause.- Parameters:
message- the detail messagecause- the cause
-