Packages
 In this topic

*Constructors

*Methods

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.license   Previous This
Package
Next

 


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

Constructors

LicenseException

public LicenseException();

Creates a LicenseException without a detailed message.

LicenseException

public LicenseException(String s);

Creates a LicenseException with a detailed message.

ParameterDescription
s The detailed message.

LicenseException

public LicenseException(int id, String s);

Creates a new LicenseException with an identifier and a detailed message.

ParameterDescription
id The exception identifier. This may be one of the following identifiers.
INVALID NOT_FOUND NO_DESCRIPTORS
WRITE_ERROR KEY_DOES_NOT_MATCH READ_ERROR
EXPIRED RUNTIME_ONLY INVALID_USER
s The detailed message.

Methods

getID

public int getID();

Retrieves the exception identifier.

Return Value:

Returns the exception identifier. This may be one of the following identifiers.
INVALID NOT_FOUND NO_DESCRIPTORS
READ_ERROR WRITE_ERROR KEY_DOES_NOT_MATCH

Fields

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.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.