Class AuthManagerExceptionHandler


  • @RestControllerAdvice
    public class AuthManagerExceptionHandler
    extends Object
    Author:
    Ramadurai Pandian
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> customErrorMessage​(javax.servlet.http.HttpServletRequest request, AuthManagerException exception)  
      org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> customErrorMessageList​(javax.servlet.http.HttpServletRequest request, AuthManagerServiceException e)  
      org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> defaultErrorHandler​(javax.servlet.http.HttpServletRequest request, Exception e)  
      org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> loginException​(javax.servlet.http.HttpServletRequest request, LoginException exception)  
      org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> methodArgumentNotValidException​(javax.servlet.http.HttpServletRequest httpServletRequest, org.springframework.web.bind.MethodArgumentNotValidException e)  
      org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> onHttpMessageNotReadable​(javax.servlet.http.HttpServletRequest httpServletRequest, org.springframework.http.converter.HttpMessageNotReadableException e)  
    • Constructor Detail

      • AuthManagerExceptionHandler

        public AuthManagerExceptionHandler()
    • Method Detail

      • methodArgumentNotValidException

        @ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class)
        public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> methodArgumentNotValidException​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                                                                                                                               org.springframework.web.bind.MethodArgumentNotValidException e)
                                                                                                                                                                        throws IOException
        Throws:
        IOException
      • onHttpMessageNotReadable

        @ExceptionHandler(org.springframework.http.converter.HttpMessageNotReadableException.class)
        public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> onHttpMessageNotReadable​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                                                                                                                        org.springframework.http.converter.HttpMessageNotReadableException e)
                                                                                                                                                                 throws IOException
        Throws:
        IOException
      • customErrorMessage

        @ExceptionHandler(AuthManagerException.class)
        public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> customErrorMessage​(javax.servlet.http.HttpServletRequest request,
                                                                                                                                                                  AuthManagerException exception)
                                                                                                                                                           throws IOException
        Throws:
        IOException
      • loginException

        @ExceptionHandler(LoginException.class)
        public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> loginException​(javax.servlet.http.HttpServletRequest request,
                                                                                                                                                              LoginException exception)
                                                                                                                                                       throws IOException
        Throws:
        IOException