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 -
Method Summary
Modifier and TypeMethodDescriptionstatic ExceptionDTOgetExceptionDTO(Exception exception) static ExceptionDTOgetExceptionDTO(Exception exception, boolean addStacktrace) org.springframework.http.ResponseEntity<ExceptionDTO> handleEntityNotFoundException(jakarta.persistence.EntityNotFoundException exception) org.springframework.http.ResponseEntity<ExceptionDTO> handleGeneralException(Exception exception) final org.springframework.http.ResponseEntity<ExceptionDTO> handleKubeApiException(EngineRuntimeException exception) 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
-
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
-
getExceptionDTO
-