Class RoutingExceptionsHandler
java.lang.Object
io.github.belgif.rest.problem.spring.RoutingExceptionsHandler
RestController exception handler for routing-related exceptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Problem> handleHttpMessageNotReadable(org.springframework.http.converter.HttpMessageNotReadableException exception) org.springframework.http.ResponseEntity<Problem> handleMissingRequestHeaderException(org.springframework.web.bind.MissingRequestHeaderException exception) org.springframework.http.ResponseEntity<Problem> handleMissingServletRequestParameterException(org.springframework.web.bind.MissingServletRequestParameterException exception)
-
Constructor Details
-
RoutingExceptionsHandler
public RoutingExceptionsHandler()
-
-
Method Details
-
handleMissingServletRequestParameterException
@ExceptionHandler(org.springframework.web.bind.MissingServletRequestParameterException.class) public org.springframework.http.ResponseEntity<Problem> handleMissingServletRequestParameterException(org.springframework.web.bind.MissingServletRequestParameterException exception) -
handleMissingRequestHeaderException
@ExceptionHandler(org.springframework.web.bind.MissingRequestHeaderException.class) public org.springframework.http.ResponseEntity<Problem> handleMissingRequestHeaderException(org.springframework.web.bind.MissingRequestHeaderException exception) -
handleHttpMessageNotReadable
@ExceptionHandler(org.springframework.http.converter.HttpMessageNotReadableException.class) public org.springframework.http.ResponseEntity<Problem> handleHttpMessageNotReadable(org.springframework.http.converter.HttpMessageNotReadableException exception)
-