Class AuthManagerExceptionHandler
- java.lang.Object
-
- io.mosip.kernel.auth.defaultimpl.exception.AuthManagerExceptionHandler
-
@RestControllerAdvice public class AuthManagerExceptionHandler extends Object
- Author:
- Ramadurai Pandian
-
-
Constructor Summary
Constructors Constructor Description AuthManagerExceptionHandler()
-
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)
-
-
-
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
-
customErrorMessageList
@ExceptionHandler(AuthManagerServiceException.class) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> customErrorMessageList(javax.servlet.http.HttpServletRequest request, AuthManagerServiceException e) 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
-
defaultErrorHandler
@ExceptionHandler({java.lang.Exception.class,java.lang.RuntimeException.class}) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> defaultErrorHandler(javax.servlet.http.HttpServletRequest request, Exception e) throws IOException- Throws:
IOException
-
-