Class GlobalExceptionHandler
java.lang.Object
org.qubership.integration.platform.runtime.catalog.rest.v1.exception.GlobalExceptionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ExceptionDTO> handleApiException(KubeApiException exception) org.springframework.http.ResponseEntity<ExceptionDTO> org.springframework.http.ResponseEntity<ExceptionDTO> handleChainDifferenceClientException(org.qubership.integration.platform.catalog.exception.ChainDifferenceClientException exception) org.springframework.http.ResponseEntity<ExceptionDTO> handleChainDifferenceException(org.qubership.integration.platform.catalog.exception.ChainDifferenceException exception) org.springframework.http.ResponseEntity<ExceptionDTO> handleChainExportException(ChainExportException exception) org.springframework.http.ResponseEntity<ExceptionDTO> handleComparisonEntityNotFoundException(org.qubership.integration.platform.catalog.exception.ComparisonEntityNotFoundException exception) org.springframework.http.ResponseEntity<ExceptionDTO> handleConstraintViolationException(jakarta.validation.ConstraintViolationException exception) final org.springframework.http.ResponseEntity<ExceptionDTO> final org.springframework.http.ResponseEntity<ExceptionDTO> org.springframework.http.ResponseEntity<ExceptionDTO> handleDataIntegrityViolationException(org.springframework.dao.DataIntegrityViolationException exception) org.springframework.http.ResponseEntity<ExceptionDTO> org.springframework.http.ResponseEntity<ExceptionDTO> handleEntityExistsException(jakarta.persistence.EntityExistsException exception) org.springframework.http.ResponseEntity<ExceptionDTO> org.springframework.http.ResponseEntity<ExceptionDTO> handleEnvironmentSetUpException(org.qubership.integration.platform.catalog.exception.CatalogRuntimeException exception) org.springframework.http.ResponseEntity<ExceptionDTO> handleGeneralException(Exception exception) org.springframework.http.ResponseEntity<ExceptionDTO> handleImportException(org.qubership.integration.platform.catalog.exception.CatalogRuntimeException exception) org.springframework.http.ResponseEntity<ExceptionDTO> handleImportInstructionsExternalException(org.qubership.integration.platform.catalog.exception.ImportInstructionsExternalException exception) org.springframework.http.ResponseEntity<ExceptionDTO> handleImportInstructionsInternalException(org.qubership.integration.platform.catalog.exception.ImportInstructionsInternalException exception) org.springframework.http.ResponseEntity<ExceptionDTO> handleImportWarningException(org.qubership.integration.platform.catalog.exception.CatalogRuntimeException exception) org.springframework.http.ResponseEntity<ExceptionDTO> handleSnapshotCreationException(org.qubership.integration.platform.catalog.exception.SnapshotCreationException exception)
-
Constructor Details
-
GlobalExceptionHandler
public GlobalExceptionHandler()
-
-
Method Details
-
handleGeneralException
@ExceptionHandler public org.springframework.http.ResponseEntity<ExceptionDTO> handleGeneralException(Exception exception) -
handleEntityNotFound
@ExceptionHandler(jakarta.persistence.EntityNotFoundException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleEntityNotFound() -
handleChainExportException
@ExceptionHandler(ChainExportException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleChainExportException(ChainExportException exception) -
handleApiSpecificationExportException
@ExceptionHandler(ApiSpecificationExportException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleApiSpecificationExportException(ApiSpecificationExportException exception) -
handleEntityExistsException
@ExceptionHandler(jakarta.persistence.EntityExistsException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleEntityExistsException(jakarta.persistence.EntityExistsException exception) -
handleApiException
@ExceptionHandler(KubeApiException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleApiException(KubeApiException exception) -
handleSnapshotCreationException
@ExceptionHandler(org.qubership.integration.platform.catalog.exception.SnapshotCreationException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleSnapshotCreationException(org.qubership.integration.platform.catalog.exception.SnapshotCreationException exception) -
handleDeploymentDeletionException
@ExceptionHandler(DeploymentProcessingException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleDeploymentDeletionException(DeploymentProcessingException exception) -
handleImportException
@ExceptionHandler({org.qubership.integration.platform.catalog.exception.SpecificationImportException.class,java.io.IOException.class}) public org.springframework.http.ResponseEntity<ExceptionDTO> handleImportException(org.qubership.integration.platform.catalog.exception.CatalogRuntimeException exception) -
handleImportWarningException
@ExceptionHandler(org.qubership.integration.platform.catalog.exception.SpecificationImportWarningException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleImportWarningException(org.qubership.integration.platform.catalog.exception.CatalogRuntimeException exception) -
handleEnvironmentSetUpException
@ExceptionHandler(EnvironmentSetUpException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleEnvironmentSetUpException(org.qubership.integration.platform.catalog.exception.CatalogRuntimeException exception) -
handleDatabaseSystemException
@ExceptionHandler(ValidationAlreadyInProgressUnexpectedException.class) public final org.springframework.http.ResponseEntity<ExceptionDTO> handleDatabaseSystemException(ValidationAlreadyInProgressUnexpectedException exception) -
handleDatabaseSystemException
@ExceptionHandler(DiagnosticValidationUnexpectedException.class) public final org.springframework.http.ResponseEntity<ExceptionDTO> handleDatabaseSystemException(DiagnosticValidationUnexpectedException exception) -
handleComparisonEntityNotFoundException
@ExceptionHandler(org.qubership.integration.platform.catalog.exception.ComparisonEntityNotFoundException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleComparisonEntityNotFoundException(org.qubership.integration.platform.catalog.exception.ComparisonEntityNotFoundException exception) -
handleChainDifferenceClientException
@ExceptionHandler(org.qubership.integration.platform.catalog.exception.ChainDifferenceClientException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleChainDifferenceClientException(org.qubership.integration.platform.catalog.exception.ChainDifferenceClientException exception) -
handleChainDifferenceException
@ExceptionHandler(org.qubership.integration.platform.catalog.exception.ChainDifferenceException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleChainDifferenceException(org.qubership.integration.platform.catalog.exception.ChainDifferenceException exception) -
handleImportInstructionsInternalException
@ExceptionHandler(org.qubership.integration.platform.catalog.exception.ImportInstructionsInternalException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleImportInstructionsInternalException(org.qubership.integration.platform.catalog.exception.ImportInstructionsInternalException exception) -
handleImportInstructionsExternalException
@ExceptionHandler(org.qubership.integration.platform.catalog.exception.ImportInstructionsExternalException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleImportInstructionsExternalException(org.qubership.integration.platform.catalog.exception.ImportInstructionsExternalException exception) -
handleConstraintViolationException
@ExceptionHandler(jakarta.validation.ConstraintViolationException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleConstraintViolationException(jakarta.validation.ConstraintViolationException exception) -
handleDataIntegrityViolationException
@ExceptionHandler(org.springframework.dao.DataIntegrityViolationException.class) public org.springframework.http.ResponseEntity<ExceptionDTO> handleDataIntegrityViolationException(org.springframework.dao.DataIntegrityViolationException exception)
-