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
public class PluginException extends RuntimeException
Exception thrown by thePluginsManagerwhen plugins loading fails.
It is only the case when the safe mode itself fails to load.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<PluginIssue>_errorsprivate Collection<PluginIssue>_safeModeErrors
-
Constructor Summary
Constructors Constructor Description PluginException(String message, Throwable cause, Collection<PluginIssue> errors, Collection<PluginIssue> safeModeErrors)Constructor.PluginException(String message, Collection<PluginIssue> errors, Collection<PluginIssue> safeModeErrors)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<PluginIssue>getErrors()Returns errors gathered by the PluginsManager while loading plugins.Collection<PluginIssue>getSafeModeErrors()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
-
-
-
-
Field Detail
-
_errors
private Collection<PluginIssue> _errors
-
_safeModeErrors
private Collection<PluginIssue> _safeModeErrors
-
-
Constructor Detail
-
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 Detail
-
getErrors
public Collection<PluginIssue> getErrors()
Returns errors gathered by the PluginsManager while loading plugins.- Returns:
- errors gathered by the PluginsManager while loading plugins.
-
getSafeModeErrors
public Collection<PluginIssue> getSafeModeErrors()
Returns errors gathered by the PluginsManager while loading the safe mode.- Returns:
- errors gathered by the PluginsManager while loading the safe mode.
-
-