Class ExceptionHandlerController

java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
org.odpi.openmetadata.userinterface.uichassis.springboot.api.ExceptionHandlerController
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware

@ControllerAdvice public class ExceptionHandlerController extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
  • Constructor Details

    • ExceptionHandlerController

      public ExceptionHandlerController()
  • Method Details

    • handleMalformedInput

      @ExceptionHandler(MalformedInputException.class) protected org.springframework.http.ResponseEntity<Object> handleMalformedInput(MalformedInputException ex, org.springframework.web.context.request.WebRequest request)
      Parameters:
      ex - - raised exception to be handled
      request - - the initial web request - the initial web request
      Returns:
      the entity containing the response exception
    • handleAssetCatalogException

      @ExceptionHandler({InvalidParameterException.class,PropertyServerException.class}) protected org.springframework.http.ResponseEntity<Object> handleAssetCatalogException(OCFCheckedExceptionBase ex, org.springframework.web.context.request.WebRequest request)
      Parameters:
      ex - - raised exception to be handled
      request - - the initial web request
      Returns:
      the entity containing the response exception
    • handleOpenLineageClientException

      @ExceptionHandler(OpenLineageServiceException.class) protected org.springframework.http.ResponseEntity<Object> handleOpenLineageClientException(OpenLineageServiceException ex, org.springframework.web.context.request.WebRequest request)
      Parameters:
      ex - - raised exception to be handled
      request - - the initial web request
      Returns:
      the entity containing the response exception
    • handleLineageNotFoundException

      @ExceptionHandler(LineageNotFoundException.class) protected org.springframework.http.ResponseEntity<Object> handleLineageNotFoundException(LineageNotFoundException ex, org.springframework.web.context.request.WebRequest request)
    • handleBadRequestException

      @ExceptionHandler(BadRequestException.class) protected org.springframework.http.ResponseEntity<Object> handleBadRequestException(BadRequestException ex, org.springframework.web.context.request.WebRequest request)
    • handleResourceException

      @ExceptionHandler(org.springframework.web.client.RestClientException.class) protected org.springframework.http.ResponseEntity<Object> handleResourceException(org.springframework.web.client.RestClientException ex, org.springframework.web.context.request.WebRequest request)
      Parameters:
      ex - - raised exception to be handled
      request - - the initial web request
      Returns:
      the entity containing the response exception
    • handleUnauthorizedException

      @ExceptionHandler(UserNotAuthorizedException.class) protected org.springframework.http.ResponseEntity<Object> handleUnauthorizedException(UserNotAuthorizedException ex, org.springframework.web.context.request.WebRequest request)
      Parameters:
      ex - - raised exception to be handled
      request - - the initial web request
      Returns:
      the entity containing the response exception
    • handleGlossaryViewOmasException

      @ExceptionHandler(GlossaryViewOmasException.class) protected org.springframework.http.ResponseEntity<Object> handleGlossaryViewOmasException(GlossaryViewOmasException ex, org.springframework.web.context.request.WebRequest request)
    • handleGlossaryViewNotFoundRequestException

      @ExceptionHandler(GlossaryNotFoundException.class) protected org.springframework.http.ResponseEntity<Object> handleGlossaryViewNotFoundRequestException(GlossaryNotFoundException ex, org.springframework.web.context.request.WebRequest request)
    • handleGlossaryViewNotFoundRequestException

      @ExceptionHandler(TermNotFoundException.class) protected org.springframework.http.ResponseEntity<Object> handleGlossaryViewNotFoundRequestException(TermNotFoundException ex, org.springframework.web.context.request.WebRequest request)
    • handleGlossaryViewNotFoundRequestException

      @ExceptionHandler(CategoryNotFoundException.class) protected org.springframework.http.ResponseEntity<Object> handleGlossaryViewNotFoundRequestException(CategoryNotFoundException ex, org.springframework.web.context.request.WebRequest request)