Package org.trustdeck.controller
Class ErrorRESTController
java.lang.Object
org.trustdeck.controller.ErrorRESTController
- All Implemented Interfaces:
org.springframework.boot.web.servlet.error.ErrorController
@RestController
public class ErrorRESTController
extends Object
implements org.springframework.boot.web.servlet.error.ErrorController
The REST controller that handles calls/forwards to /error
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleError(jakarta.servlet.http.HttpServletRequest request) Error handling method.
-
Constructor Details
-
ErrorRESTController
public ErrorRESTController()
-
-
Method Details
-
handleError
@RequestMapping("/error") public org.springframework.http.ResponseEntity<Map<String,Object>> handleError(jakarta.servlet.http.HttpServletRequest request) Error handling method.- Parameters:
request- the request object, injected by Spring Boot- Returns:
- a 500-INTERNAL_SERVER_ERROR status or the status code of the request that caused the error.
-