@RestControllerAdvice public class ApiExceptionHandler extends Object
| Constructor and Description |
|---|
ApiExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> |
controlRequestException(javax.servlet.http.HttpServletRequest httpServletRequest,
RequestException e) |
org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> |
defaultServiceErrorHandler(javax.servlet.http.HttpServletRequest request,
Exception e) |
org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> |
methodArgumentNotValidException(javax.servlet.http.HttpServletRequest httpServletRequest,
org.springframework.web.bind.MethodArgumentNotValidException e) |
org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> |
onHttpMessageNotReadable(javax.servlet.http.HttpServletRequest httpServletRequest,
org.springframework.http.converter.HttpMessageNotReadableException e) |
org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> |
parseResponseException(javax.servlet.http.HttpServletRequest httpServletRequest,
ParseResponseException e) |
org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> |
signatureFailureException(javax.servlet.http.HttpServletRequest httpServletRequest,
SignatureFailureException e) |
org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> |
signatureUtilClientException(javax.servlet.http.HttpServletRequest httpServletRequest,
SignatureUtilClientException e) |
org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> |
signatureUtilException(javax.servlet.http.HttpServletRequest httpServletRequest,
SignatureUtilException e) |
@ExceptionHandler(value=RequestException.class) public org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> controlRequestException(javax.servlet.http.HttpServletRequest httpServletRequest, RequestException e) throws IOException
IOException@ExceptionHandler(value=SignatureFailureException.class) public org.springframework.http.ResponseEntity<ResponseWrapper<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<ResponseWrapper<ServiceError>> signatureUtilClientException(javax.servlet.http.HttpServletRequest httpServletRequest, SignatureUtilClientException e) throws IOException
IOException@ExceptionHandler(value=io.mosip.kernel.core.signatureutil.exception.SignatureUtilException.class) public org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> signatureUtilException(javax.servlet.http.HttpServletRequest httpServletRequest, SignatureUtilException e) throws IOException
IOException@ExceptionHandler(value=io.mosip.kernel.core.signatureutil.exception.ParseResponseException.class) public org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> parseResponseException(javax.servlet.http.HttpServletRequest httpServletRequest, ParseResponseException e) throws IOException
IOException@ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class) public org.springframework.http.ResponseEntity<ResponseWrapper<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<ResponseWrapper<ServiceError>> onHttpMessageNotReadable(javax.servlet.http.HttpServletRequest httpServletRequest, org.springframework.http.converter.HttpMessageNotReadableException e) throws IOException
IOException@ExceptionHandler(value={java.lang.Exception.class,java.lang.RuntimeException.class})
public org.springframework.http.ResponseEntity<ResponseWrapper<ServiceError>> defaultServiceErrorHandler(javax.servlet.http.HttpServletRequest request,
Exception e)
throws IOException
IOExceptionCopyright © 2020. All rights reserved.