Back

Error

JS Py
Hello World

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

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

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 );
}
def OnStart():
    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 ( “/absolute/...” or “relative/...” )