Package com.ultikits.ultitools.manager
Class PluginDependencyResolver.MissingDependencyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ultikits.ultitools.manager.PluginDependencyResolver.MissingDependencyException
- All Implemented Interfaces:
Serializable
- Enclosing class:
PluginDependencyResolver
Exception thrown when required dependencies are missing.
Carries a structured partition alongside the message (D-10): getSortedPrefix() is
every module that does not depend, directly or transitively, on the missing dependency, and
getRefusedPlugins() is the declaring module(s) plus everything transitively
depending on them. The caller obtains both from these accessors, never by parsing
Throwable.getMessage().
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMissingDependencyException(String message) MissingDependencyException(String message, List<Class<? extends UltiToolsPlugin>> sortedPrefix, Set<String> refusedPlugins) Constructs a missing-hard-dependency refusal carrying the structured partition. -
Method Summary
Modifier and TypeMethodDescriptionThe declaring module(s) plus every plugin transitively depending on them, by plugin name.List<Class<? extends UltiToolsPlugin>> The plugin classes that survive - do not depend, directly or transitively, on a missing hard dependency - in load order.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
sortedPrefix
-
refusedPlugins
-
-
Constructor Details
-
MissingDependencyException
-
MissingDependencyException
public MissingDependencyException(String message, List<Class<? extends UltiToolsPlugin>> sortedPrefix, Set<String> refusedPlugins) Constructs a missing-hard-dependency refusal carrying the structured partition.- Parameters:
message- the human-readable detection message, naming the declaring module(s) and the dependency each wantedsortedPrefix- every plugin class that survives, in load orderrefusedPlugins- the declaring module(s) plus every plugin transitively depending on them, by plugin name- Since:
- 6.3.0
-
-
Method Details
-
getSortedPrefix
The plugin classes that survive - do not depend, directly or transitively, on a missing hard dependency - in load order. Never null.- Returns:
- the sortable prefix
- Since:
- 6.3.0
-
getRefusedPlugins
The declaring module(s) plus every plugin transitively depending on them, by plugin name. Never null.- Returns:
- the refused plugin names
- Since:
- 6.3.0
-