Class ModuleDependencyOutdatedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
eu.cloudnetservice.driver.module.ModuleDependencyOutdatedException
- All Implemented Interfaces:
Serializable
Represents an exception that is thrown if a module depends on a specific version of a module and the versions do not
match.
- Since:
- 4.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModuleDependencyOutdatedException(@NonNull ModuleWrapper requiringModule, @NonNull ModuleDependency dependency, @NonNull String semverIndex, int required, int actual) Creates a new instance of this ModuleDependencyOutdatedException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ModuleDependencyOutdatedException
public ModuleDependencyOutdatedException(@NonNull @NonNull ModuleWrapper requiringModule, @NonNull @NonNull ModuleDependency dependency, @NonNull @NonNull String semverIndex, int required, int actual) Creates a new instance of this ModuleDependencyOutdatedException.- Parameters:
requiringModule- the module which requires the dependency.dependency- the dependency which is outdated.semverIndex- the semver index name: major, minor, patchrequired- the required version of the semver index.actual- the actual running version of the semver index.- Throws:
NullPointerException- if requiringModule, dependency or semverIndex is null.
-