Package africa.absa.inception.api
Class ProblemHandler
- java.lang.Object
-
- africa.absa.inception.api.ProblemHandler
-
@ControllerAdvice public class ProblemHandler extends Object
The ProblemHandler class implements the error handler that returns errors raised by RESTful controllers as RFC 7807 JSON problem details objects.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description ProblemHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.http.ResponseEntity<ProblemDetails>handle(javax.servlet.http.HttpServletRequest request, ServiceException serviceException)protected org.springframework.http.ResponseEntity<ProblemDetails>handle(javax.servlet.http.HttpServletRequest request, Throwable cause)protected org.springframework.http.ResponseEntity<ProblemDetails>handle(javax.servlet.http.HttpServletRequest request, org.springframework.security.access.AccessDeniedException accessDeniedException)
-
-
-
Method Detail
-
handle
@ExceptionHandler @ResponseBody protected org.springframework.http.ResponseEntity<ProblemDetails> handle(javax.servlet.http.HttpServletRequest request, ServiceException serviceException)
-
handle
@ExceptionHandler @ResponseBody protected org.springframework.http.ResponseEntity<ProblemDetails> handle(javax.servlet.http.HttpServletRequest request, org.springframework.security.access.AccessDeniedException accessDeniedException)
-
handle
@ExceptionHandler @ResponseBody protected org.springframework.http.ResponseEntity<ProblemDetails> handle(javax.servlet.http.HttpServletRequest request, Throwable cause)
-
-