ProjectAlreadyRegisteredException ex = (ProjectAlreadyRegisteredException) caught;
String projectName = ex.getProjectId().getId();
MessageBox.showMessage("The project name " + projectName + " is already taken. Please try a different name.");
}
else if (caught instanceof ProjectDocumentExistsException) {
ProjectDocumentExistsException ex = (ProjectDocumentExistsException) caught;
String projectName = ex.getProjectId().getId();
MessageBox.showAlert("Project already exists", "There is already a non-empty project on the server which is named " + projectName + ". This project has NOT been overwritten. Please contact the administrator to resolve this issue.");
}
else {
MessageBox.showAlert(caught.getMessage());
}