Package uk.ac.osswatch.simal.wicket

Examples of uk.ac.osswatch.simal.wicket.UserReportableException


      homepage.setDefaultName(inputModel.getName());
     
      getUpdatePanel().addToDisplayList(homepage);
      getUpdatePanel().addToModel(homepage);
    } catch (SimalException e) {
      UserReportableException error = new UserReportableException(
          "Unable to generate a website from the given form data",
          ProjectDetailPage.class, e);
      setResponsePage(new ErrorReportPage(error));
    }
  }
View Full Code Here


      try {
        SourceRepositoriesPanel sourceRepositoriesPanel = new SourceRepositoriesPanel("sourceRepositories",
            "Source Repositories", project.getRepositories(), rosb, project);
        add(sourceRepositoriesPanel);
      } catch (SimalRepositoryException e) {
        UserReportableException error = new UserReportableException(
            "Unable to get project releases from the repository",
            ExhibitProjectBrowserPage.class, e);
        setResponsePage(new ErrorReportPage(error));
      }
     
View Full Code Here

          e.getCause().getClass() == SAXParseException.class) {
        logger.warn("No valid doap found, msg: " + e.getMessage() + "; doap: " + doap, e);
        Session.get().error("No valid DOAP file found at the provided URL.");
      } else {
        logger.warn("Unable to create a project from the following doap: " + doap);
        setResponsePage(new ErrorReportPage(new UserReportableException(
            "Unable to add doap using RDF supplied", DoapFormPage.class, e)));
      }
    }
  }
View Full Code Here

          try {
            StringWriter xmlSourceWriter = new StringWriter();
            IOUtils.copy(upload.getInputStream(), xmlSourceWriter);
            processSubmittedDoap(xmlSourceWriter.toString());
          } catch (IOException e) {
            setResponsePage(new ErrorReportPage(new UserReportableException(
                "Unable to add doap using RDF supplied", DoapFormPage.class, e)));
          }
        }
      }
    }
View Full Code Here

        } catch (FileNotFoundException e) {
          // Invalid URL
          Session.get().error(invalidUrlMsg);
          logger.warn("Error processing URL: " + invalidUrlMsg);
        } catch (IOException e) {
          setResponsePage(new ErrorReportPage(new UserReportableException(
              "Unable to add doap using RDF supplied", DoapFormPage.class, e)));
          logger.warn("Error processing URL: " + url + "; " + e.getMessage(), e);
        }
      }
    }
View Full Code Here

            + inputModel.getSourceForgeId();
        processAddByURLSubmit(url, invalidUrlMsg);
      } catch (MalformedURLException e) {
        // This should be unreachable since we're constructing this URL.
        logger.error("Unexpected malformed URL: " + e.getMessage(), e);
        setResponsePage(new ErrorReportPage(new UserReportableException(
            "Unable to add doap using RDF supplied", DoapFormPage.class, e)));
      }
    }
View Full Code Here

      add(new Label("widgetTitle", "Featured Project"));
      add(new Label("projectName", "Error"));
      add(new Label("shortDesc", msg));

      final UserReportableException exception = new UserReportableException(
          msg, ProjectSummaryPanel.class);
      add(new PageLink("projectDetailLink", new ExceptionDetailLink(exception)));
    }
  }
View Full Code Here

        getUpdatePanel().addToModel(selectedCategory);
      } else {
        throw new SimalException("No valid selected category.");
      }
    } catch (SimalException e) {
      UserReportableException error = new UserReportableException(
          "Unable to generate a category from the given form data",
          ProjectDetailPage.class, e);
      setResponsePage(new ErrorReportPage(error));
    }
  }
View Full Code Here

   */
  public ProjectBrowserPage() {
      try {
          add(new ProjectListPanel("projectList", 15));
        } catch (SimalRepositoryException e) {
          UserReportableException error = new UserReportableException(
              "Unable to get projects from the repository",
              PersonBrowserPage.class, e);
          setResponsePage(new ErrorReportPage(error));
        }
  }
View Full Code Here

   */
  public ProjectBrowserPage(Set<IProject> projects) {
      try {
          add(new ProjectListPanel("projectList", projects, 15));
        } catch (SimalRepositoryException e) {
          UserReportableException error = new UserReportableException(
              "Unable to get projects from the repository",
              PersonBrowserPage.class, e);
          setResponsePage(new ErrorReportPage(error));
        }
  }
View Full Code Here

TOP

Related Classes of uk.ac.osswatch.simal.wicket.UserReportableException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.