net.windward.util
Class LicenseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--net.windward.util.LicenseException
All Implemented Interfaces:
java.io.Serializable

public class LicenseException
extends java.lang.RuntimeException

This exception is thrown if there is a problem with the license for the engine. This can include having more servers running than are licensed.

Version:
1.0 May 31, 2002
See Also:
Serialized Form

Field Summary
static int BAD_DATE
          Has a non-sensical expiration date.
static int BAD_KEY
          The username & password do not match.
static int BAD_XML
          The xml in the license file was malformed.
static int DAILY_LIMIT
          Went over the daily limit of 500 reports.
static int DEMO_VERSION
          The demo version is limited from running at certain times.
static int DEV_LIMIT
          Can only do 1 thread at a time in the dev version.
static int EXPIRED_KEY
          The license is expired.
static int LATER_VERSION
          The license is not legit for the version of Windward Reports being run.
static int NO_KEY
          There is no license key.
static int NO_PROP
          The license entry in the properties file was not found.
static int NO_PROP_FILE
          The Windward Reports properties file could not be found.
static int REVOKED
          This license is revoked.
static int TOO_MANY_CPUS
          Running on more CPUs than licensed for
static int TOO_MANY_MACHINES
          Running on more machines than licensed for
static int UNKNOWN_ERROR
          Some problem with the license.
static int UNKNOWN_IP
          The machine's IP address is not in the license.
static int WRONG_PRODUCT
          This license is for a different product.
static int WRONG_TEMPLATE
          This license is for a different template type.
 
Constructor Summary
LicenseException(int cause)
          Create a LicenseException object.
LicenseException(int cause, java.lang.String message)
          Create a LicenseException object.
 
Method Summary
 java.lang.String get_Message()
           
 java.lang.String getMessage()
          Return the exception as a String.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_KEY

public static final int NO_KEY
There is no license key.

BAD_KEY

public static final int BAD_KEY
The username & password do not match.

EXPIRED_KEY

public static final int EXPIRED_KEY
The license is expired.

DAILY_LIMIT

public static final int DAILY_LIMIT
Went over the daily limit of 500 reports.

DEV_LIMIT

public static final int DEV_LIMIT
Can only do 1 thread at a time in the dev version.

NO_PROP_FILE

public static final int NO_PROP_FILE
The Windward Reports properties file could not be found.

BAD_XML

public static final int BAD_XML
The xml in the license file was malformed.

BAD_DATE

public static final int BAD_DATE
Has a non-sensical expiration date.

NO_PROP

public static final int NO_PROP
The license entry in the properties file was not found.

UNKNOWN_IP

public static final int UNKNOWN_IP
The machine's IP address is not in the license.

LATER_VERSION

public static final int LATER_VERSION
The license is not legit for the version of Windward Reports being run.

DEMO_VERSION

public static final int DEMO_VERSION
The demo version is limited from running at certain times.

WRONG_PRODUCT

public static final int WRONG_PRODUCT
This license is for a different product.

TOO_MANY_MACHINES

public static final int TOO_MANY_MACHINES
Running on more machines than licensed for

UNKNOWN_ERROR

public static final int UNKNOWN_ERROR
Some problem with the license.

REVOKED

public static final int REVOKED
This license is revoked.

TOO_MANY_CPUS

public static final int TOO_MANY_CPUS
Running on more CPUs than licensed for

WRONG_TEMPLATE

public static final int WRONG_TEMPLATE
This license is for a different template type.
Constructor Detail

LicenseException

public LicenseException(int cause)
Create a LicenseException object.
Parameters:
cause - What type of license problem it is.

LicenseException

public LicenseException(int cause,
                        java.lang.String message)
Create a LicenseException object.
Parameters:
cause - What type of license problem it is.
message - The message to post with this exception.
Method Detail

getMessage

public java.lang.String getMessage()
Return the exception as a String.
Overrides:
getMessage in class java.lang.Throwable
Returns:
The exception.

get_Message

public java.lang.String get_Message()


Copyright © 2002 - 2008 Windward Reports - All Rights Reserved. java reporting software