Standard Error Messages


Introduction

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.

Sample

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}",
                                      "org.ametys.cms.page.Copy");

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

Notes

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

Back to top