Class ErrorController

java.lang.Object
com.erudika.para.server.controllers.ErrorController
All Implemented Interfaces:
org.springframework.boot.webmvc.error.ErrorController

@Controller public class ErrorController extends Object implements org.springframework.boot.webmvc.error.ErrorController
A controller that handles errors and displays error messages.
Author:
Alex Bogdanovski [[email protected]]
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<?>
    get(String code, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, org.springframework.ui.Model model)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ErrorController

      public ErrorController()
  • Method Details

    • get

      @GetMapping({"/error","/error/{code}"}) public org.springframework.http.ResponseEntity<?> get(@PathVariable(required=false) String code, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, org.springframework.ui.Model model) throws IOException
      Throws:
      IOException