Class CustomExceptionHandler

java.lang.Object
company.tap.commondependencies.exceptions.CustomExceptionHandler

@ControllerAdvice
public class CustomExceptionHandler
extends java.lang.Object
  • 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)