PP.App.MessageInfo.showFault(fault);
fault. Object. Object of the "fault" type, contains error information.
The MessageInfo.showFault method displays a dialog box with error.
The fault parameter may contain the following fields:
{ Code: 0, // PP.App.FaultCodes. Error code Message: "Error" // String. Text of displayed error };
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: