@Test public void JFW定義例外以外の例外のハンドリング() throws Exception { SystemExceptionHandler exceptionHandler = new SystemExceptionHandler(); exceptionHandler.setViewName("error/error"); ModelAndView mav = exceptionHandler.resolveException(request, response, handler, new IllegalArgumentException("test")); assertThat(mav.getViewName(), is("error/error")); }
public void setViewName(String viewName) { this.viewName = viewName; }
SystemExceptionHandler extends AbstractJseExceptionHandler implements JseExceptionHandler { public void setViewName(String viewName) { this.viewName = viewName; } }
SystemExceptionHandler extends AbstractJseExceptionHandler implements JseExceptionHandler { public void setViewName(String viewName) { this.viewName = viewName; } SystemExceptionHandler(); }
SystemExceptionHandler extends AbstractJseExceptionHandler implements JseExceptionHandler { public void setViewName(String viewName) { this.viewName = viewName; } SystemExceptionHandler(); void setViewName(String viewName); @Override int getOrder(); @Override ModelAndView internalResolveException(HttpServletRequest request,
            HttpServletResponse response,
            Object handler,
            Exception ex); @Override boolean supported(Object handler, Exception ex); }
SystemExceptionHandler extends AbstractJseExceptionHandler implements JseExceptionHandler { public void setViewName(String viewName) { this.viewName = viewName; } SystemExceptionHandler(); void setViewName(String viewName); @Override int getOrder(); @Override ModelAndView internalResolveException(HttpServletRequest request,
            HttpServletResponse response,
            Object handler,
            Exception ex); @Override boolean supported(Object handler, Exception ex);  }