Examples of UserReportableException


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

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

      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

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

          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

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

          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

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

        } 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

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

            + 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

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

      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

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

        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

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

   */
  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

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

   */
  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
Copyright © 2018 www.massapi.com. 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.