Package com.imsl
Class LicenseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.imsl.IMSLRuntimeException
com.imsl.LicenseException
- All Implemented Interfaces:
Serializable
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.
|
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the error number for this exception.Returns the name of the feature that could not be licensed.Returns the license file path for this exception.Returns the localized error message for this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
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
Returns the license file path for this exception.- Returns:
- a
String, the license file path
-
getLocalizedMessage
Returns the localized error message for this exception.- Overrides:
getLocalizedMessagein classThrowable- Returns:
- a
String, the error message
-