onerror event
Collapse the table of content
Expand the table of content

IItemPromise.onerror event

Applies to Windows and Windows Phone

Occurs when there is an error in processing.

Syntax


function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
iItemPromise.addEventListener("error", handler);
iItemPromise.removeEventListener("error", handler);


Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

IItemPromise

 

 

Show:
© 2017 Microsoft