Package org.bukkit.plugin
Class UnknownDependencyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.bukkit.plugin.UnknownDependencyException
- All Implemented Interfaces:
Serializable
Thrown when attempting to load an invalid Plugin file
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a new UnknownDependencyExceptionUnknownDependencyException
(String message) Constructs a new UnknownDependencyException with the given messageUnknownDependencyException
(Throwable throwable) Constructs a new UnknownDependencyException based on the given ExceptionUnknownDependencyException
(Throwable throwable, String message) Constructs a new UnknownDependencyException based on the given ExceptionUnknownDependencyException
(Collection<String> missingDependencies, @NotNull String pluginName) Create a newUnknownDependencyException
with a message informing about which dependencies are missing for what plugin. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownDependencyException
Constructs a new UnknownDependencyException based on the given Exception- Parameters:
throwable
- Exception that triggered this Exception
-
UnknownDependencyException
Constructs a new UnknownDependencyException with the given message- Parameters:
message
- Brief message explaining the cause of the exception
-
UnknownDependencyException
Constructs a new UnknownDependencyException based on the given Exception- Parameters:
throwable
- Exception that triggered this Exceptionmessage
- Brief message explaining the cause of the exception
-
UnknownDependencyException
public UnknownDependencyException()Constructs a new UnknownDependencyException -
UnknownDependencyException
public UnknownDependencyException(@NotNull Collection<String> missingDependencies, @NotNull @NotNull String pluginName) Create a newUnknownDependencyException
with a message informing about which dependencies are missing for what plugin.- Parameters:
missingDependencies
- missing dependenciespluginName
- plugin which is missing said dependencies
-