Class CustomExceptionHandler
java.lang.Object
company.tap.commondependencies.exceptions.CustomExceptionHandler
@ControllerAdvice
public class CustomExceptionHandler
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description CustomExceptionHandler() -
Method Summary
Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.Object>handleCustomErrorException(CustomErrorException ex)org.springframework.http.ResponseEntity<java.lang.Object>handleExistsException(ExistsException ex)org.springframework.http.ResponseEntity<java.lang.Object>handleFailedException(FailedException ex)org.springframework.http.ResponseEntity<java.lang.Object>handleGenericException(java.lang.Exception ex)org.springframework.http.ResponseEntity<java.lang.Object>handleHttpClientErrorException(org.springframework.web.client.HttpClientErrorException e)org.springframework.http.ResponseEntity<java.lang.Object>handleInActiveIdException(InActiveIdException ex)org.springframework.http.ResponseEntity<java.lang.Object>handleInvalidApiKeyException(InvalidApiKeyException ex)org.springframework.http.ResponseEntity<java.lang.Object>handleInvalidDataException(InvalidDataException ex)org.springframework.http.ResponseEntity<java.lang.Object>handleInvalidIdException(InvalidIdException ex)org.springframework.http.ResponseEntity<java.lang.Object>handleInvalidSessionException(InvalidSessionException ex)org.springframework.http.ResponseEntity<java.lang.Object>handleInvalidTokenException(InvalidTokenException ex)org.springframework.http.ResponseEntity<java.lang.Object>handleNotFoundException(NotFoundException ex)org.springframework.http.ResponseEntity<java.lang.Object>handleRequiredFieldsException(RequiredFieldsException ex)org.springframework.http.ResponseEntity<java.lang.Object>handleRuntimeException(java.lang.Exception ex)org.springframework.http.ResponseEntity<java.lang.Object>handleUnauthorizedException(UnauthorizedException ex)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CustomExceptionHandler
public CustomExceptionHandler()
-
-
Method Details
-
handleRuntimeException
@ExceptionHandler(java.lang.RuntimeException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleRuntimeException(java.lang.Exception ex) -
handleGenericException
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleGenericException(java.lang.Exception ex) -
handleHttpClientErrorException
@ExceptionHandler(org.springframework.web.client.HttpClientErrorException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleHttpClientErrorException(org.springframework.web.client.HttpClientErrorException e) -
handleRequiredFieldsException
@ExceptionHandler(RequiredFieldsException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleRequiredFieldsException(RequiredFieldsException ex) -
handleInvalidDataException
@ExceptionHandler(InvalidDataException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleInvalidDataException(InvalidDataException ex) -
handleInvalidIdException
@ExceptionHandler(InvalidIdException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleInvalidIdException(InvalidIdException ex) -
handleInActiveIdException
@ExceptionHandler(InActiveIdException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleInActiveIdException(InActiveIdException ex) -
handleExistsException
@ExceptionHandler(ExistsException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleExistsException(ExistsException ex) -
handleNotFoundException
@ExceptionHandler(NotFoundException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleNotFoundException(NotFoundException ex) -
handleInvalidApiKeyException
@ExceptionHandler(InvalidApiKeyException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleInvalidApiKeyException(InvalidApiKeyException ex) -
handleInvalidSessionException
@ExceptionHandler(InvalidSessionException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleInvalidSessionException(InvalidSessionException ex) -
handleInvalidTokenException
@ExceptionHandler(InvalidTokenException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleInvalidTokenException(InvalidTokenException ex) -
handleUnauthorizedException
@ExceptionHandler(UnauthorizedException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleUnauthorizedException(UnauthorizedException ex) -
handleCustomErrorException
@ExceptionHandler(CustomErrorException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleCustomErrorException(CustomErrorException ex) -
handleFailedException
@ExceptionHandler(FailedException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleFailedException(FailedException ex)
-