Freigeben über


IPageControlMembers.error method

Called if an error occurs during the processing of the page.

Syntax

WinJS.UI.Pages.define("yourPage.html", {
    error: function (err) { /* your code here */ },
    // Other methods of PageControl
});

Parameters

  • err
    Type: Object

    The error that occurred.

Return value

Type: Promise**

Nothing if the error was handled, or a non-promise error value wrapped in a promise if the error was not handled. See wrapError.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI.Pages

See also

For developers

WinJS.UI.Pages.IPageControlMembers

Your first app - Part 3: PageControl objects and navigation

Navigating between pages

Quickstart: Using single-page navigation

Quickstart: Adding Page controls

Adding a Page control item template

HTML Page controls sample

Navigation and navigation history sample

For designers

Navigation patterns