Standard Error Messages


This documentation explains how to display the standard error dialog.

This dialog has :

  • A title,
  • A short functionnal message,
  • A long technical message

To save some lines, error dialogs can automatically log.


new org.ametys.uitool.msg.ErrorDialog("Server failed (code " + response.getAttribute("code") + ")",
                                      "The server has failed in copying the page. Try later.",
                                      "{server stacktrace here}",

See the API of org.ametys.uitool.msg.ErrorDialog for more information.


Please remember that ErrorDialog are non blocking instruction. If several error dialogs can be called, only one will be open at once.