表 14.3 Constructors for the JSException class
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) 参数
描述 A detail message is a string that describes this particular exception. Each form constructs a JSException with different information:
Form 1 of the declaration constructs a JSException without a detail message.
Form 2 of the declaration constructs a JSException with a detail message.
Form 3 of the declaration constructs a JSException with a detail message and all the other information that usually comes with a JavaScript error.
返回页面顶部