Class SplibErrorController
java.lang.Object
jp.ecuacion.splib.web.controller.SplibErrorController
- All Implemented Interfaces:
org.springframework.boot.web.servlet.error.ErrorController
@Controller
@RequestMapping("/public/error")
public class SplibErrorController
extends Object
implements org.springframework.boot.web.servlet.error.ErrorController
Shows the error page and the next page moving from it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Goes to the home page of the system.org.springframework.web.servlet.ModelAndViewerrorHtml(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) Catches the error by redirecting /public/error and returns the error page.
-
Constructor Details
-
SplibErrorController
public SplibErrorController()
-
-
Method Details
-
errorHtml
@RequestMapping(produces="text/html", method={POST,GET}) public org.springframework.web.servlet.ModelAndView errorHtml(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) Catches the error by redirecting /public/error and returns the error page.- Parameters:
request- requestresponse- responsemodel- model- Returns:
- ModelAndView
-
action
Goes to the home page of the system.- Returns:
- html file name
- Throws:
RedirectToHomePageException- GoToHomePageException
-