Sound Events in Errors
  • 03 Nov 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Sound Events in Errors

  • Dark
    Light

Article summary

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?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.