Class InvalidLicenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.aristaflow.adept2.base.licensing.InvalidLicenceException
- All Implemented Interfaces:
Serializable
This exception indicates, that a licence file is invalid (or not present at
all). The code allows to identify the cause for this licence exception.
- Author:
- Ulrich Kreher
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intThe internal code that caused thisInvalidLicenceException. -
Constructor Summary
ConstructorsConstructorDescriptionInvalidLicenceException(int code) Creates a newInvalidLicenceExceptioncaused by the designated code.InvalidLicenceException(String message) Creates a newInvalidLicenceExceptionwith the designated message.InvalidLicenceException(String message, int code) Creates a newInvalidLicenceExceptioncaused by the designated code having the designated additional method. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Gets the code providing information on the cause for thisInvalidLicenceExceptionor 0 in case the code is not set.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 thisInvalidLicenceException.
-
-
Constructor Details
-
InvalidLicenceException
public InvalidLicenceException(int code) Creates a newInvalidLicenceExceptioncaused by the designated code.- Parameters:
code- The code providing information on the cause for thisInvalidLicenceException.
-
InvalidLicenceException
Creates a newInvalidLicenceExceptioncaused 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 thisInvalidLicenceException.
-
InvalidLicenceException
Creates a newInvalidLicenceExceptionwith the designated message.- Parameters:
message- A message providing information on the cause of the invalid licence.
-
-
Method Details
-
getCode
public int getCode()Gets the code providing information on the cause for thisInvalidLicenceExceptionor 0 in case the code is not set.- Returns:
- The code providing information on the cause for this
InvalidLicenceException.
-