public class InvalidLicenceException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
protected int |
code
The internal code that caused this
InvalidLicenceException. |
| Constructor and Description |
|---|
InvalidLicenceException(int code)
Creates a new
InvalidLicenceException caused by the designated
code. |
InvalidLicenceException(java.lang.String message)
Creates a new
InvalidLicenceException with the designated
message. |
InvalidLicenceException(java.lang.String message,
int code)
Creates a new
InvalidLicenceException caused by the designated
code having the designated additional method. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Gets the code providing information on the cause for this
InvalidLicenceException or 0 in case the code is not set. |
protected final int code
InvalidLicenceException.public InvalidLicenceException(int code)
InvalidLicenceException caused by the designated
code.code - The code providing information on the cause for this
InvalidLicenceException.public InvalidLicenceException(java.lang.String message,
int code)
InvalidLicenceException caused by the designated
code having the designated additional method.message - A message providing additional user information (without any
detailed information on the cause).code - The code providing information on the cause for this
InvalidLicenceException.public InvalidLicenceException(java.lang.String message)
InvalidLicenceException with the designated
message.message - A message providing information on the cause of the invalid
licence.