Back

Error

Hello World

Shows a detailed error message with message, file and line in an asynchroneous dialog.

app.Error( message, line, file, quit )

You can also set it to quit the app after the user dismisses the dialog.

See Also: Alert

Example - Show error and exit

function OnStart()
{
    var msg = "How dare you running that sample.\nI will close immediately!";
    app.Error( msg, 4, "demo.js", true );
}
Copy All       Run      
boolean
string
number: integer
string: path to file or folder ( “/absolute/...” or “relative/...” )