Class ControllerExceptionHandler

java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
org.qubership.integration.platform.engine.errorhandling.ControllerExceptionHandler
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware

@ControllerAdvice public class ControllerExceptionHandler extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
  • Field Summary

    Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

    logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    getExceptionDTO(Exception exception, boolean addStacktrace)
     
    org.springframework.http.ResponseEntity<ExceptionDTO>
    handleEntityNotFoundException(jakarta.persistence.EntityNotFoundException exception)
     
    org.springframework.http.ResponseEntity<ExceptionDTO>
     
    final org.springframework.http.ResponseEntity<ExceptionDTO>
     
    final org.springframework.http.ResponseEntity<ExceptionDTO>
     

    Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

    createProblemDetail, createResponseEntity, getMessageSource, handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleErrorResponseException, handleException, handleExceptionInternal, handleHandlerMethodValidationException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMaxUploadSizeExceededException, handleMethodArgumentNotValid, handleMethodValidationException, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleNoResourceFoundException, handleServletRequestBindingException, handleTypeMismatch, setMessageSource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ControllerExceptionHandler

      public ControllerExceptionHandler()
  • Method Details

    • handleGeneralException

      @ExceptionHandler public org.springframework.http.ResponseEntity<ExceptionDTO> handleGeneralException(Exception exception)
    • handleEntityNotFoundException

      @ExceptionHandler(jakarta.persistence.EntityNotFoundException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleEntityNotFoundException(jakarta.persistence.EntityNotFoundException exception)
    • handleKubeApiException

      @ExceptionHandler(KubeApiException.class) public final org.springframework.http.ResponseEntity<ExceptionDTO> handleKubeApiException(EngineRuntimeException exception)
    • handleLoggingMaskingException

      @ExceptionHandler(LoggingMaskingException.class) public final org.springframework.http.ResponseEntity<ExceptionDTO> handleLoggingMaskingException(EngineRuntimeException exception)
    • getExceptionDTO

      public static ExceptionDTO getExceptionDTO(Exception exception)
    • getExceptionDTO

      public static ExceptionDTO getExceptionDTO(Exception exception, boolean addStacktrace)