Package com.imsl

Class LicenseException

All Implemented Interfaces:
Serializable

public class LicenseException extends IMSLRuntimeException

A LicenseException exception is thrown if a license to use the product cannot be obtained. Either a LicenseException exception will be thrown or a ExceptionInInitializerError exception will be thrown with LicenseException as the cause.

The behavior of the license manager is controlled by the following system properties.

Property Value Meaning
com.imsl.license.path License file path A location in your installation hierarchy which indicates the expected license file location. Default is imsl_eval.dat.
com.imsl.license.popup "true" or "false" If "true", use a dialog box to show any license manager errors. If "false", errors only result in this exception being thrown. Default is to use a popup.
See Also:
  • Method Details

    • getFeature

      public String getFeature()
      Returns the name of the feature that could not be licensed.
      Returns:
      a String, the name of the feature
    • getErrorNumber

      public int getErrorNumber()
      Returns the error number for this exception.
      Returns:
      an int, the error number
    • getLicensePath

      public String getLicensePath()
      Returns the license file path for this exception.
      Returns:
      a String, the license file path
    • getLocalizedMessage

      public String getLocalizedMessage()
      Returns the localized error message for this exception.
      Overrides:
      getLocalizedMessage in class Throwable
      Returns:
      a String, the error message