Class ApiExceptionHandler

java.lang.Object
de.dlr.proseo.ordermgr.ApiExceptionHandler

@RestControllerAdvice public class ApiExceptionHandler extends Object
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 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)