public final class IncorrectVersionException
extends java.lang.Exception
Constructor and Description |
---|
IncorrectVersionException(java.lang.String required,
java.lang.String current)
Constructor for the IncorrectVersionException object
|
Modifier and Type | Method and Description |
---|---|
static void |
checkRequiredVersion(java.lang.String current,
java.lang.String required)
Check if the current version is bigger or equals to the required
version.
|
public IncorrectVersionException(java.lang.String required, java.lang.String current)
required
- Description of Parametercurrent
- Description of Parameterpublic static void checkRequiredVersion(java.lang.String current, java.lang.String required) throws IncorrectVersionException
IncorrectVersionException
is thrown.current
- Description of Parameterrequired
- Description of ParameterIncorrectVersionException
- if the current version does not fit