Package br.com.caelum.vraptor.errormail.mail

Examples of br.com.caelum.vraptor.errormail.mail.ErrorMailFactory


  @Override
  public void service(HttpServletRequest req, HttpServletResponse res)
      throws ServletException, IOException {
    try {
      ErrorMail errorMail = new ErrorMailFactory(req, env).build();
      mailer.register(errorMail);
      req.setAttribute("stackTrace", errorMail.getStackTrace());
      req.getRequestDispatcher("/WEB-INF/jsp/error/500.jsp").forward(req, res);
    } catch (EmailException e) {
      logger.error(e.getMessage());
View Full Code Here


  @Override
  public void service(HttpServletRequest req, HttpServletResponse res)
      throws ServletException, IOException {
    try {
      ErrorMail errorMail = new ErrorMailFactory(ExceptionData.fromRequest(req), env).build();
      mailer.register(errorMail);
      req.setAttribute("stackTrace", errorMail.getStackTrace());
      req.getRequestDispatcher("/WEB-INF/jsp/error/500.jsp").forward(req, res);
    } catch (EmailException e) {
      logger.error(e.getMessage());
View Full Code Here

  @Override
  public void service(HttpServletRequest req, HttpServletResponse res)
      throws ServletException, IOException {
    try {
      ErrorMail errorMail = new ErrorMailFactory(req, env).build();
      mailer.register(errorMail);
      req.setAttribute("stackTrace", errorMail.getStackTrace());
      req.getRequestDispatcher("/WEB-INF/jsp/error/500.jsp").forward(req, res);
    } catch (EmailException e) {
      logger.error(e.getMessage());
View Full Code Here

  @Override
  public void service(HttpServletRequest req, HttpServletResponse res)
      throws ServletException, IOException {
    try {
      ErrorMail errorMail = new ErrorMailFactory(req, env).build();
      mailer.register(errorMail);
      req.setAttribute("stackTrace", errorMail.getStackTrace());
      req.getRequestDispatcher("/WEB-INF/jsp/error/500.jsp").forward(req, res);
    } catch (EmailException e) {
      logger.error(e.getMessage());
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.errormail.mail.ErrorMailFactory

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.