Package org.ametys.runtime.plugin
Class PluginException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ametys.runtime.plugin.PluginException
- All Implemented Interfaces:
Serializable
Exception thrown by the
It is only the case when the safe mode itself fails to load.
PluginsManager
when plugins loading fails.It is only the case when the safe mode itself fails to load.
- See Also:
-
Constructor Summary
ConstructorDescriptionPluginException
(String message, Throwable cause, Collection<PluginIssue> errors, Collection<PluginIssue> safeModeErrors) Constructor.PluginException
(String message, Collection<PluginIssue> errors, Collection<PluginIssue> safeModeErrors) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns errors gathered by the PluginsManager while loading plugins.Returns errors gathered by the PluginsManager while loading the safe mode.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PluginException
public PluginException(String message, Collection<PluginIssue> errors, Collection<PluginIssue> safeModeErrors) Constructor.- Parameters:
message
- the detail message.errors
- the errors gathered by the PluginsManager while loading pluginssafeModeErrors
- the errors gathered by the PluginsManager while loading the safe mode.
-
PluginException
public PluginException(String message, Throwable cause, Collection<PluginIssue> errors, Collection<PluginIssue> safeModeErrors) Constructor.- Parameters:
message
- the detail message.cause
- the cause, if any.errors
- the errors gathered by the PluginsManager while loading pluginssafeModeErrors
- the errors gathered by the PluginsManager while loading the safe mode.
-
-
Method Details
-
getErrors
Returns errors gathered by the PluginsManager while loading plugins.- Returns:
- errors gathered by the PluginsManager while loading plugins.
-
getSafeModeErrors
Returns errors gathered by the PluginsManager while loading the safe mode.- Returns:
- errors gathered by the PluginsManager while loading the safe mode.
-