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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Goes to the home page of the system.
    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.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - request
      response - response
      model - model
      Returns:
      ModelAndView
    • action

      @GetMapping("action") public String action() throws RedirectToHomePageException
      Goes to the home page of the system.
      Returns:
      html file name
      Throws:
      RedirectToHomePageException - GoToHomePageException