error
Description
It is possible to register event listeners for listening to info, warning and error messages. By default, SDL LiveContent Create will show a dialog for all messages. The event listener can prevent the dialog to appear by returning false.
Error
function showError (evt)
{
return false;
}
Editor.addEventListener("error", showError);
Usage
The error event fires after SDL LiveContent Create has encountered any error, but before the error dialog is shown. If you need to catch errors in the startup of SDL LiveContent Create , a good place to add the event listener is config.js which is located in the config folder of yourSDL LiveContent Create implementation. Returning false in the event listener will prevent the dialog; default behavior, that is showing a dialog, will happen when returning any other value.
error event
Properties
- type
-
String. A string identifying the error level. Can be
error, , orinfoerror. - message
- String. A message describing the error, usually what is displayed to the user.
History
| version | event |
|---|---|
| SDL LiveContentCreate 5.1 | Introduction. |