Package | Description |
---|---|
net.sourceforge.htmlunit.corejs.javascript |
Modifier and Type | Method and Description |
---|---|
static JavaScriptException |
ScriptRuntime.throwCustomError(Context cx,
Scriptable scope,
java.lang.String constructorName,
java.lang.String message)
Equivalent to executing "new $constructorName(message, sourceFileName, sourceLineNo)" from JavaScript.
|
static JavaScriptException |
ScriptRuntime.throwError(Context cx,
Scriptable scope,
java.lang.String message)
Equivalent to executing "new Error(message, sourceFileName, sourceLineNo)" from JavaScript.
|