IWebApplicationScriptEvents::ScriptError method (webapplication.h)
Fired when an unhandled script error occurs.
Syntax
HRESULT ScriptError(
[in] IHTMLWindow2 *htmlWindow,
[in] IActiveScriptError *scriptError,
[in] LPCWSTR url,
[in] BOOL errorHandled
);
Parameters
[in] htmlWindow
Type: IHTMLWindow2*
The window or frame in which the script error occurred.
[in] scriptError
Type: IActiveScriptError*
The object that contains info about the script error that occurred.
[in] url
Type: LPCWSTR
The URL on which the script error occurred.
[in] errorHandled
Type: BOOL
TRUE if the app handled the error; otherwise FALSE.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | webapplication.h |