@RestControllerAdvice public class KeymanagerExceptionHandler extends Object
| Constructor and Description |
|---|
KeymanagerExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
controlRequestException(javax.servlet.http.HttpServletRequest httpServletRequest,
RequestException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
cryptoException(javax.servlet.http.HttpServletRequest httpServletRequest,
CryptoException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
cryptoManagerServieException(javax.servlet.http.HttpServletRequest httpServletRequest,
CryptoManagerSerivceException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
dateTimeParseException(javax.servlet.http.HttpServletRequest httpServletRequest,
java.time.format.DateTimeParseException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
defaultErrorHandler(javax.servlet.http.HttpServletRequest httpServletRequest,
Exception e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
emptyLengthException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.idgenerator.exception.TokenIdGeneratorException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
handleServiceException(javax.servlet.http.HttpServletRequest httpServletRequest,
LicenseKeyServiceException exception)
Method to handle
LicenseKeyServiceException. |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
illegalArgumentException(javax.servlet.http.HttpServletRequest httpServletRequest,
IllegalArgumentException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
invalidApplicationIdException(javax.servlet.http.HttpServletRequest httpServletRequest,
InvalidApplicationIdException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
invalidDataException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.crypto.exception.InvalidDataException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
invalidFormatException(javax.servlet.http.HttpServletRequest httpServletRequest,
com.fasterxml.jackson.databind.exc.InvalidFormatException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
invalidKeyException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.crypto.exception.InvalidKeyException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
keymanagerServiceException(javax.servlet.http.HttpServletRequest httpServletRequest,
CryptoException e) |
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>> |
noSuchAlgorithmException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.exception.NoSuchAlgorithmException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
noUniqueAliasException(javax.servlet.http.HttpServletRequest httpServletRequest,
NoUniqueAliasException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
nullDataException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.crypto.exception.NullDataException 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) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
onMissingServletRequestParameterException(javax.servlet.http.HttpServletRequest httpServletRequest,
org.springframework.web.bind.MissingServletRequestParameterException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
parseResponseException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.signatureutil.exception.ParseResponseException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
signatureFailureException(javax.servlet.http.HttpServletRequest httpServletRequest,
SignatureFailureException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
signatureUtilClientException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.signatureutil.exception.SignatureUtilClientException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
signatureUtilException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.signatureutil.exception.SignatureUtilException e) |
org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> |
validateInputArguments(javax.servlet.http.HttpServletRequest httpServletRequest,
InvalidArgumentsException exception)
Method to handle
InvalidArgumentsException. |
@ExceptionHandler(value=io.mosip.kernel.core.crypto.exception.NullDataException.class)
public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> nullDataException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.crypto.exception.NullDataException e)
throws IOException
IOException@ExceptionHandler(value=io.mosip.kernel.core.crypto.exception.InvalidKeyException.class)
public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> invalidKeyException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.crypto.exception.InvalidKeyException e)
throws IOException
IOException@ExceptionHandler(value=io.mosip.kernel.core.exception.NoSuchAlgorithmException.class)
public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> noSuchAlgorithmException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.exception.NoSuchAlgorithmException e)
throws IOException
IOException@ExceptionHandler(value=java.lang.IllegalArgumentException.class) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> illegalArgumentException(javax.servlet.http.HttpServletRequest httpServletRequest, IllegalArgumentException e) throws IOException
IOException@ExceptionHandler(value=com.fasterxml.jackson.databind.exc.InvalidFormatException.class)
public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> invalidFormatException(javax.servlet.http.HttpServletRequest httpServletRequest,
com.fasterxml.jackson.databind.exc.InvalidFormatException e)
throws IOException
IOException@ExceptionHandler(value=java.time.format.DateTimeParseException.class)
public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> dateTimeParseException(javax.servlet.http.HttpServletRequest httpServletRequest,
java.time.format.DateTimeParseException e)
throws IOException
IOException@ExceptionHandler(value=io.mosip.kernel.core.crypto.exception.InvalidDataException.class)
public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> invalidDataException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.crypto.exception.InvalidDataException e)
throws IOException
IOException@ExceptionHandler(value=NoUniqueAliasException.class) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> noUniqueAliasException(javax.servlet.http.HttpServletRequest httpServletRequest, NoUniqueAliasException e) throws IOException
IOException@ExceptionHandler(value=CryptoException.class) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> cryptoException(javax.servlet.http.HttpServletRequest httpServletRequest, CryptoException e) throws IOException
IOException@ExceptionHandler(value=KeymanagerServiceException.class) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> keymanagerServiceException(javax.servlet.http.HttpServletRequest httpServletRequest, CryptoException e) throws IOException
IOException@ExceptionHandler(value=CryptoManagerSerivceException.class) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> cryptoManagerServieException(javax.servlet.http.HttpServletRequest httpServletRequest, CryptoManagerSerivceException e) throws IOException
IOException@ExceptionHandler(value=InvalidApplicationIdException.class) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> invalidApplicationIdException(javax.servlet.http.HttpServletRequest httpServletRequest, InvalidApplicationIdException e) throws IOException
IOException@ExceptionHandler(value=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
IOException@ExceptionHandler(value=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
IOException@ExceptionHandler(value=org.springframework.web.bind.MissingServletRequestParameterException.class)
public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> onMissingServletRequestParameterException(javax.servlet.http.HttpServletRequest httpServletRequest,
org.springframework.web.bind.MissingServletRequestParameterException e)
throws IOException
IOException@ExceptionHandler(value=io.mosip.kernel.core.idgenerator.exception.TokenIdGeneratorException.class)
public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> emptyLengthException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.idgenerator.exception.TokenIdGeneratorException e)
throws IOException
IOException@ExceptionHandler(value=InvalidArgumentsException.class) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> validateInputArguments(javax.servlet.http.HttpServletRequest httpServletRequest, InvalidArgumentsException exception) throws IOException
InvalidArgumentsException.httpServletRequest - the requestexception - the exception.ErrorResponse.IOException - the IO exception@ExceptionHandler(value=LicenseKeyServiceException.class) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> handleServiceException(javax.servlet.http.HttpServletRequest httpServletRequest, LicenseKeyServiceException exception) throws IOException
LicenseKeyServiceException.httpServletRequest - the requestexception - the exception.ErrorResponse.IOException - the IO exception@ExceptionHandler(value=RequestException.class) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> controlRequestException(javax.servlet.http.HttpServletRequest httpServletRequest, RequestException e) throws IOException
IOException@ExceptionHandler(value=SignatureFailureException.class) public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> signatureFailureException(javax.servlet.http.HttpServletRequest httpServletRequest, SignatureFailureException e) throws IOException
IOException@ExceptionHandler(value=io.mosip.kernel.core.signatureutil.exception.SignatureUtilClientException.class)
public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> signatureUtilClientException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.signatureutil.exception.SignatureUtilClientException e)
throws IOException
IOException@ExceptionHandler(value=io.mosip.kernel.core.signatureutil.exception.SignatureUtilException.class)
public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> signatureUtilException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.signatureutil.exception.SignatureUtilException e)
throws IOException
IOException@ExceptionHandler(value=io.mosip.kernel.core.signatureutil.exception.ParseResponseException.class)
public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> parseResponseException(javax.servlet.http.HttpServletRequest httpServletRequest,
io.mosip.kernel.core.signatureutil.exception.ParseResponseException e)
throws IOException
IOException@ExceptionHandler(value={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 httpServletRequest,
Exception e)
throws IOException
IOExceptionCopyright © 2020. All rights reserved.