IWebApplicationScriptEvents::ScriptError method

Fired when an unhandled script error occurs.

Syntax


HRESULT ScriptError(
  [in]  IHTMLWindow2 *htmlWindow,
  [in]  IActiveScriptError *scriptError,
  [in]  LPCWSTR url,
  [in]  BOOL errorHandled
);

Parameters

htmlWindow [in]

Type: IHTMLWindow2*

The window or frame in which the script error occurred.

scriptError [in]

Type: IActiveScriptError*

The object that contains info about the script error that occurred.

url [in]

Type: LPCWSTR

The URL on which the script error occurred.

errorHandled [in]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

IDL

Webapplication.idl

See also

IWebApplicationScriptEvents

 

 

Community Additions

ADD
Show:
© 2014 Microsoft