PP.App.MessageInfo.showFault

Syntax

PP.App.MessageInfo.showFault(fault);

Parameters

fault. Object. Object of the "fault" type, contains error information.

Description

The MessageInfo.showFault method displays a dialog box with error.

Comments

The fault parameter may contain the following fields:

{
Code: 0,   // PP.App.FaultCodes. Error code
Message: "Error"   // String. Text of displayed error
};

Example

Executing the example requires that the HTML page contains links to the PP.js, PP.Metabase.js, PP.App.js and the PP.css and PP.App.css styles files.

// Create error information
fault = {Code: 0, Message: "Error"}
// Display dialog box
PP.App.MessageInfo.showFault(fault);

After executing the example a dialog box with error opens.

See also:

PP.App