Example usage for org.springframework.web HttpSessionRequiredException printStackTrace

List of usage examples for org.springframework.web HttpSessionRequiredException printStackTrace

Introduction

In this page you can find the example usage for org.springframework.web HttpSessionRequiredException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:org.capelin.mvc.controller.CatalogRecordController.java

@Override
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
        throws Exception {
    ModelAndView mav;/*from   www  .ja  v a  2 s.  c  o m*/
    try {
        mav = super.handleRequestInternal(request, response);
    } catch (HttpSessionRequiredException ex) {
        mav = defaultError("Session has expired!", ex);
    } catch (RuntimeException ex) {
        ex.printStackTrace();
        mav = defaultError("Runtime Error!", ex);
    }
    return mav;
}