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 -
Method Summary
-
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
-