JSException extends Exception.
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----netscape.javascript.JSException
JSException is an exception that is thrown when JavaScript code returns an error.
netscape.javascript.JSException class has the following constructors:
Table 14.3 Constructors for the JSException class
| Constructor | Description | 
|---|---|
|  | Constructs a JSException.You specify whether theJSExceptionhas a detail message and other information. | 
The following sections show the declaration and usage of these constructors.
 
JSException
Constructor. Constructs a JSException. You specify whether the JSException has a detail message and other information.
 Declaration
1. public JSException()
2. public JSException(String s)
3. public JSException(String s,
   String filename,
   int lineno,
   String source,
   int tokenIndex) Arguments
 Description
A detail message is a string that describes this particular exception.
Each form constructs a JSException with different information:
JSException without a detail message.
JSException with a detail message.
Last Updated: 10/31/97 12:34:01