| Package | Description |
|---|---|
| org.htmlunit.corejs.javascript |
| Modifier and Type | Method and Description |
|---|---|
static JavaScriptException |
ScriptRuntime.throwCustomError(Context cx,
Scriptable scope,
String constructorName,
String message)
Equivalent to executing "new $constructorName(message, sourceFileName, sourceLineNo)" from
JavaScript.
|
static JavaScriptException |
ScriptRuntime.throwError(Context cx,
Scriptable scope,
String message)
Equivalent to executing "new Error(message, sourceFileName, sourceLineNo)" from JavaScript.
|
Copyright © 2023 HtmlUnit. All rights reserved.