Class AuthManagerExceptionHandler
java.lang.Object
io.mosip.kernel.auth.defaultimpl.exception.AuthManagerExceptionHandler
- Author:
- Ramadurai Pandian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> customErrorMessage(jakarta.servlet.http.HttpServletRequest request, AuthManagerException exception) org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> customErrorMessageList(jakarta.servlet.http.HttpServletRequest request, AuthManagerServiceException e) org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> defaultErrorHandler(jakarta.servlet.http.HttpServletRequest request, Exception e) org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> loginException(jakarta.servlet.http.HttpServletRequest request, LoginException exception) org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> methodArgumentNotValidException(jakarta.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(jakarta.servlet.http.HttpServletRequest httpServletRequest, org.springframework.http.converter.HttpMessageNotReadableException e)
-
Constructor Details
-
AuthManagerExceptionHandler
public AuthManagerExceptionHandler()
-
-
Method Details
-
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(jakarta.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(jakarta.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(jakarta.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(jakarta.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(jakarta.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(jakarta.servlet.http.HttpServletRequest request, Exception e) throws IOException - Throws:
IOException
-