Class TmaRestControllerAdvice


  • @ControllerAdvice
    public class TmaRestControllerAdvice
    extends java.lang.Object
    ControllerAdvise to handle MethodArgumentNotValid exception for TMA WebServices
    Since:
    2003
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getMessage​(org.springframework.web.bind.MethodArgumentNotValidException ex)  
      TmaErrorData handleInvalidRequest​(org.springframework.web.bind.MethodArgumentNotValidException exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TmaRestControllerAdvice

        public TmaRestControllerAdvice()
    • Method Detail

      • handleInvalidRequest

        @ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class)
        @ResponseStatus(BAD_REQUEST)
        @ResponseBody
        public TmaErrorData handleInvalidRequest​(org.springframework.web.bind.MethodArgumentNotValidException exception)
      • getMessage

        protected java.lang.String getMessage​(org.springframework.web.bind.MethodArgumentNotValidException ex)