Sound Events in Errors
- 03 Nov 2020
- 1 Minute to read
- Contributors
- Print
- DarkLight
Sound Events in Errors
- Updated on 03 Nov 2020
- 1 Minute to read
- Contributors
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback!
Sounds are disabled by default in an ApplicationError
. They are enabled by calling enableSound
. A sound will be played according to the highest severity error.
Example
private void createError() {
ApplicationError error = new ApplicationError(ERROR_METADATA_ID, ERROR_MESSAGE_ID);
error.setKey(dialogWorkspace.getName());
error.setSeverity(CAError.SEV_ERROR);
error.enableSound();
dialogWorkspace.getErrorService().addError(error);
}
Was this article helpful?