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
public class LicenceViolationException extends AbortServiceException
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
code
The internal code that caused thisLicenceViolationException
.
-
Constructor Summary
Constructors Constructor Description LicenceViolationException(int code)
Creates a newLicenceViolationException
caused by the designated code.LicenceViolationException(String message, int code)
Creates a newLicenceViolationException
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 thisLicenceViolationException
.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
LicenceViolationException
public LicenceViolationException(int code)
Creates a newLicenceViolationException
caused by the designated code.- Parameters:
code
- The code providing information on the cause for thisLicenceViolationException
.
-
LicenceViolationException
public LicenceViolationException(String message, int code)
Creates a newLicenceViolationException
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 thisLicenceViolationException
.
-
-