} catch (ValidationException validationException) {
logger.error("error", validationException);
XulMessageBox box = (XulMessageBox) document.createElement("messagebox");
box.setTitle(Messages.getString("AlgorithmController.ErrorTitle"));
box.setMessage(Messages.getString("AlgorithmController.ValidationErrorMessage", validationException.getMessage()));
box.open();
} catch (Throwable throwable) {
logger.error("error", throwable);
XulMessageBox box = (XulMessageBox) document.createElement("messagebox");
box.setTitle(Messages.getString("AlgorithmController.ErrorTitle"));
box.setMessage(Messages.getString("AlgorithmController.GeneralErrorMessage"));