Class LicenceViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.aristaflow.adept2.base.configuration.AbortServiceException
de.aristaflow.adept2.base.service.LicenceViolationException
- All Implemented Interfaces:
Serializable
This exception indicates, that a licence violation occurred when trying to
start a service checking the licence. The code allows to identify the cause
for the licence violation.
- Author:
- Ulrich Kreher
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intThe internal code that caused thisLicenceViolationException. -
Constructor Summary
ConstructorsConstructorDescriptionLicenceViolationException(int code) Creates a newLicenceViolationExceptioncaused by the designated code.LicenceViolationException(String message, int code) Creates a newLicenceViolationExceptioncaused by the designated code having the designated additional method. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Gets the code providing information on the cause for thisLicenceViolationException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
code
protected final int codeThe internal code that caused thisLicenceViolationException.
-
-
Constructor Details
-
LicenceViolationException
public LicenceViolationException(int code) Creates a newLicenceViolationExceptioncaused by the designated code.- Parameters:
code- The code providing information on the cause for thisLicenceViolationException.
-
LicenceViolationException
Creates a newLicenceViolationExceptioncaused by the designated code having the designated additional method.- Parameters:
message- A message providing additional user information (without any detailed information on the cause).code- The code providing information on the cause for thisLicenceViolationException.
-
-
Method Details
-
getCode
public int getCode()Gets the code providing information on the cause for thisLicenceViolationException.- Returns:
- The code providing information on the cause for this
LicenceViolationException.
-