Examples of ApplicationLogicException


Examples of br.com.caelum.vraptor.interceptor.ApplicationLogicException

    String to = resolver.pathFor(methodInfo.getControllerMethod());
    logger.debug("forwarding to {}", to);
    try {
      request.getRequestDispatcher(to).forward(request, response);
    } catch (ServletException e) {
      throw new ApplicationLogicException(to + " raised an exception", e);
    } catch (IOException e) {
      throw new ResultException(e);
    }
  }
View Full Code Here

Examples of br.com.caelum.vraptor.interceptor.ApplicationLogicException

      methodExecutedEvent.fire(new MethodExecuted(method, methodInfo));
    } catch (IllegalArgumentException e) {
      throw new InterceptionException(e);
    } catch (MethodExecutorException e) {
      throwIfNotValidationException(e,
          new ApplicationLogicException("your controller raised an exception", e.getCause()));
    } catch (Exception e) {
      throwIfNotValidationException(e, new InterceptionException(e));
    }
  }
View Full Code Here

Examples of br.com.caelum.vraptor.interceptor.ApplicationLogicException

    if (original instanceof ValidationException || cause instanceof ValidationException) {
      // fine... already parsed
      log.trace("swallowing {}", cause);
    } else {
      throw new ApplicationLogicException(alternativeCause);
    }
  }
View Full Code Here

Examples of br.com.caelum.vraptor.interceptor.ApplicationLogicException

    String to = resolver.pathFor(methodInfo.getControllerMethod());
    logger.debug("forwarding to {}", to);
    try {
      request.getRequestDispatcher(to).forward(request, response);
    } catch (ServletException e) {
      throw new ApplicationLogicException(to + " raised an exception", e);
    } catch (IOException e) {
      throw new ResultException(e);
    }
  }
View Full Code Here

Examples of br.com.caelum.vraptor.interceptor.ApplicationLogicException

    String to = resolver.pathFor(requestInfo.getResourceMethod());
    logger.debug("forwarding to {}", to);
    try {
      request.getRequestDispatcher(to).forward(request, response);
    } catch (ServletException e) {
      throw new ApplicationLogicException(to + " raised an exception", e);
    } catch (IOException e) {
      throw new ResultException(e);
    }
  }
View Full Code Here

Examples of br.com.caelum.vraptor.interceptor.ApplicationLogicException

    String to = resolver.pathFor(requestInfo.getControllerMethod());
    logger.debug("forwarding to {}", to);
    try {
      request.getRequestDispatcher(to).forward(request, response);
    } catch (ServletException e) {
      throw new ApplicationLogicException(to + " raised an exception", e);
    } catch (IOException e) {
      throw new ResultException(e);
    }
  }
View Full Code Here

Examples of br.com.caelum.vraptor.interceptor.ApplicationLogicException

      this.methodInfo.setResult(result);
      methodExecutedEvent.fire(new MethodExecuted(method, methodInfo));
    } catch (IllegalArgumentException e) {
      throw new InterceptionException(e);
    } catch (Exception e) {
      throwIfNotValidationException(e, new ApplicationLogicException(e));
    }
  }
View Full Code Here

Examples of br.com.caelum.vraptor.interceptor.ApplicationLogicException

    String to = resolver.pathFor(methodInfo.getControllerMethod());
    logger.debug("forwarding to {}", to);
    try {
      request.getRequestDispatcher(to).forward(request, response);
    } catch (ServletException e) {
      throw new ApplicationLogicException(to + " raised an exception", e);
    } catch (IOException e) {
      throw new ResultException(e);
    }
  }
View Full Code Here

Examples of br.com.caelum.vraptor.interceptor.ApplicationLogicException

    String to = resolver.pathFor(requestInfo.getControllerMethod());
    logger.debug("forwarding to {}", to);
    try {
      request.getRequestDispatcher(to).forward(request.getOriginalRequest(), response.getOriginalResponse());
    } catch (ServletException e) {
      throw new ApplicationLogicException(to + " raised an exception", e);
    } catch (IOException e) {
      throw new ResultException(e);
    }
  }
View Full Code Here

Examples of br.com.caelum.vraptor.interceptor.ApplicationLogicException

    String to = resolver.pathFor(requestInfo.getControllerMethod());
    logger.debug("forwarding to {}", to);
    try {
      request.getRequestDispatcher(to).forward(request, response);
    } catch (ServletException e) {
      throw new ApplicationLogicException(to + " raised an exception", e);
    } catch (IOException e) {
      throw new ResultException(e);
    }
  }
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.