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 supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

See also

IItemPromise

 

 

Show:
© 2014 Microsoft