Class InvalidLicenceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.aristaflow.adept2.base.licensing.InvalidLicenceException
-
- All Implemented Interfaces:
Serializable
public class InvalidLicenceException extends Exception
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
code
The internal code that caused thisInvalidLicenceException
.
-
Constructor Summary
Constructors Constructor Description InvalidLicenceException(int code)
Creates a newInvalidLicenceException
caused by the designated code.InvalidLicenceException(String message)
Creates a newInvalidLicenceException
with the designated message.InvalidLicenceException(String message, int code)
Creates a newInvalidLicenceException
caused by the designated code having the designated additional method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Gets the code providing information on the cause for thisInvalidLicenceException
or 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
-
-
-
-
Constructor Detail
-
InvalidLicenceException
public InvalidLicenceException(int code)
Creates a newInvalidLicenceException
caused by the designated code.- Parameters:
code
- The code providing information on the cause for thisInvalidLicenceException
.
-
InvalidLicenceException
public InvalidLicenceException(String message, int code)
Creates a newInvalidLicenceException
caused 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
public InvalidLicenceException(String message)
Creates a newInvalidLicenceException
with the designated message.- Parameters:
message
- A message providing information on the cause of the invalid licence.
-
-