Class LicenseException
public class LicenseException extends Exception
{
// Fields
public static final int EXPIRED;
public static final int INVALID;
public static final int INVALID_USER;
public static final int KEY_DOES_NOT_MATCH;
public static final int NO_DESCRIPTORS;
public static final int NOT_FOUND;
public static final int READ_ERROR;
public static final int RUNTIME_ONLY;
public static final int WRITE_ERROR;
// Constructors
public LicenseException();
public LicenseException(String s);
public LicenseException(int id, String s);
// Methods
public int getID();
}
This class represents an exception that is thrown when a Java object tries to access a license that either does not exist or is not valid.
Exception
|
+--LicenseException
public LicenseException();
Creates a LicenseException without a detailed message.
public LicenseException(String s);
Creates a LicenseException with a detailed message.
Parameter | Description |
s
| The detailed message.
|
public LicenseException(int id, String s);
Creates a new LicenseException with an identifier and a detailed message.
Parameter | Description |
id
| The exception identifier. This may be one of the following identifiers.
|
s
| The detailed message.
|
public int getID();
Retrieves the exception identifier.
Return Value:
Returns the exception identifier. This may be one of the following identifiers.
- EXPIRED
- An exception identifier that indicates the license is expired.
- INVALID
- An exception identifier that indicates that the license is invalid.
- INVALID_USER
- An exception identifier that indicates an invalid user argument.
- KEY_DOES_NOT_MATCH
- An exception identifier that indicates the key does not match.
- NO_DESCRIPTORS
- An exception identifier that indicates there are no descriptors for the license.
- NOT_FOUND
- An exception identifier that indicates that the license cannot be found.
- READ_ERROR
- An exception identifier that indicates there was a read error while reading the license.
- RUNTIME_ONLY
- An exception identifier that indicates the license has a RUNTIME style.
- WRITE_ERROR
- An exception identifier that indicates there was a write error.