Last publication:23/02/2018at 2:45 PMCédricDamioli
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
Oops !
Copy to clipboard failed. Open the code and copy it manually.
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");
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");
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.