public class InvalidLicenseException extends LicenseException
An exception indicating that the wrong type of license was found or supplied at runtime. This could be caused by a problem with activation or by a malicious attempt to subvert the licensing/activation mechanisms.
Note: the getErrorCode()
method is provided for compatibility with earlier XML Compare releases; when
called with this exception the result will be: 14
Constructor and Description |
---|
InvalidLicenseException(java.lang.String expectedLicenseType,
java.lang.String providedLicenseType)
Constructs a new InvalidLicenseException appropriate for use in the XML Compare code.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpectedLicenseType()
Reports the expected type or types of license corresponding to the location where licenses were loaded.
|
java.lang.String |
getProvidedLicenseType()
Reports the type of license loaded.
|
getErrorCode, getSeverity
getCause, getThrowable
public InvalidLicenseException(java.lang.String expectedLicenseType, java.lang.String providedLicenseType)
expectedLicenseType
- the type of license expectedprovidedLicenseType
- the type of license actually providedpublic java.lang.String getExpectedLicenseType()
public java.lang.String getProvidedLicenseType()