Package uk.ac.osswatch.simal.wicket

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


      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


        add(sourceRepositoriesPanel);
      } catch (SimalRepositoryException e) {
        UserReportableException error = new UserReportableException(
            "Unable to get project releases from the repository",
            ExhibitProjectBrowserPage.class, e);
        setResponsePage(new ErrorReportPage(error));
      }
     
     
//      this.screenshots = project.getScreenshots();
      DocumentSetPanel screenshotsListPanel = new DocumentSetPanel("screenshotsList",
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

    public ExceptionDetailLink(UserReportableException exception) {
      this.exception = exception;
    }

    public Page getPage() {
      return new ErrorReportPage(exception);
    }
View Full Code Here

      }
    } 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

          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

          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.ErrorReportPage

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.