Package de.dlr.proseo.ordermgr
Class ApiExceptionHandler
java.lang.Object
de.dlr.proseo.ordermgr.ApiExceptionHandler
Extend the REST Api exception handling.
Consume the exception, set the appropriate HTTP status and forward the message to the calling service.
- Author:
- Ernst Melchinger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String> handleValidation(org.springframework.http.converter.HttpMessageNotReadableException ex)
-
Constructor Details
-
ApiExceptionHandler
public ApiExceptionHandler()
-
-
Method Details
-
handleValidation
@ExceptionHandler(org.springframework.http.converter.HttpMessageNotReadableException.class) public org.springframework.http.ResponseEntity<String> handleValidation(org.springframework.http.converter.HttpMessageNotReadableException ex)
-