Class SimplyControllableAdvice

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(io.easywalk.simply.utils.GsonTools.JsonObjectExtensionConflictException e)  
      org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(java.lang.Exception e)  
      org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(java.util.NoSuchElementException e)  
      org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(javax.persistence.EntityExistsException e)  
      org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(javax.persistence.EntityNotFoundException e)  
      org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(org.springframework.dao.DataIntegrityViolationException e)  
      org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(org.springframework.web.bind.MethodArgumentNotValidException e)  
      • Methods inherited from class java.lang.Object

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

      • SimplyControllableAdvice

        public SimplyControllableAdvice()
    • Method Detail

      • handle

        @ExceptionHandler(javax.persistence.EntityExistsException.class)
        public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(javax.persistence.EntityExistsException e)
      • handle

        @ExceptionHandler(javax.persistence.EntityNotFoundException.class)
        public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(javax.persistence.EntityNotFoundException e)
      • handle

        @ExceptionHandler(java.util.NoSuchElementException.class)
        public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(java.util.NoSuchElementException e)
      • handle

        @ExceptionHandler(org.springframework.dao.DataIntegrityViolationException.class)
        public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(org.springframework.dao.DataIntegrityViolationException e)
      • handle

        @ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class)
        public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(org.springframework.web.bind.MethodArgumentNotValidException e)
      • handle

        @ExceptionHandler(java.lang.Exception.class)
        public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(java.lang.Exception e)
      • handle

        @ExceptionHandler(io.easywalk.simply.utils.GsonTools.JsonObjectExtensionConflictException.class)
        public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle​(io.easywalk.simply.utils.GsonTools.JsonObjectExtensionConflictException e)