com.deltaxml.odf
Class OdfLicenseExpiredException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.deltaxml.odf.OdfException
              extended by com.deltaxml.odf.OdfLicensingException
                  extended by com.deltaxml.odf.OdfLicenseExpiredException
All Implemented Interfaces:
Serializable

public class OdfLicenseExpiredException
extends OdfLicensingException

An exception indicating that the license used to activate the software has expired.

Activation licenses which never expire are available from DeltaXML, however, some licenses have an in-built expiry date, for example, licenses supplied for evaluation or beta-test purposes.

This exception is thrown when an attempt is made to use a DeltaXML ODF product when its license has expired. To resolve the issue, the software should be deactivated and then reactivated using a new license.

See Also:
Serialized Form

Constructor Summary
OdfLicenseExpiredException(Date expiryDate, String product)
          Constructs a new OdfLicenseExpiredException with a default message
OdfLicenseExpiredException(String message, Date expiryDate, String product)
          Constructs a new OdfLicenseExpiredException with a configurable message
 
Method Summary
 Date getLicenseExpiryDate()
          Reports the license expiry date
 
Methods inherited from class com.deltaxml.odf.OdfLicensingException
getProduct
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OdfLicenseExpiredException

public OdfLicenseExpiredException(Date expiryDate,
                                  String product)
Constructs a new OdfLicenseExpiredException with a default message

Parameters:
expiryDate - the date on which the license expired
product - the product for which the license has expired

OdfLicenseExpiredException

public OdfLicenseExpiredException(String message,
                                  Date expiryDate,
                                  String product)
Constructs a new OdfLicenseExpiredException with a configurable message

Parameters:
message - the exception message
expiryDate - the date on which the license expired
product - the product for which the license has expired
Method Detail

getLicenseExpiryDate

public Date getLicenseExpiryDate()
Reports the license expiry date

Returns:
a Date object representing the expiry date


© 2001-2009 DeltaXML Ltd. All Rights Reserved.