com.deltaxml.odf
Class OdfLicensingException

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
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidOdfLicenseException, NoOdfLicenseInstalledException, OdfLicenseContentException, OdfLicenseCpuLimitException, OdfLicenseExpiredException, OdfLicenseNotYetValidException, OdfLicenseSecurityException, OdfVersionException

public class OdfLicensingException
extends OdfException

An exception indicating that there is a problem with a licensing operation. This could occur during activation/deactivation of the software or on operation of the software itself.

This exception is the super-type of all other licensing exceptions and so can be used as a catch-all if the user does not wish to catch each individual licensing exception.

See Also:
Serialized Form

Constructor Summary
OdfLicensingException(String message, String product)
          Constructs a new OdfLicensingException with a configurable message
OdfLicensingException(String message, Throwable cause, String product)
          Constructs a new OdfLicensingException with a configurable message and and underlying cause.
 
Method Summary
 String getProduct()
          Reports the product for which the licensing problem has occurred.
 
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

OdfLicensingException

public OdfLicensingException(String message,
                             String product)
Constructs a new OdfLicensingException with a configurable message

Parameters:
message - the exception message
product - the ODF product for which there is a licensing problem

OdfLicensingException

public OdfLicensingException(String message,
                             Throwable cause,
                             String product)
Constructs a new OdfLicensingException with a configurable message and and underlying cause.

Parameters:
message - the exception message
cause - the underlying cause of the licensing exception
product - the ODF product for which there is a licensing problem
Method Detail

getProduct

public String getProduct()
Reports the product for which the licensing problem has occurred.

Returns:
a String representation of the product name


© 2001-2009 DeltaXML Ltd. All Rights Reserved.