Class GlobalExceptionHandler

java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
org.qubership.atp.dataset.service.rest.advice.GlobalExceptionHandler

@ControllerAdvice public class GlobalExceptionHandler 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
    org.springframework.http.ResponseEntity<ExceptionInfo>
    Handle if shadow was not found for entity.
    protected org.springframework.http.ResponseEntity<Object>
    handleException(org.springframework.security.access.AccessDeniedException exception)
    Handle AccessDeniedException exception with saved headers.

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

    handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch

    Methods inherited from class java.lang.Object

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

    • GlobalExceptionHandler

      public GlobalExceptionHandler()
  • Method Details

    • entityNotFoundExceptionHandle

      @ExceptionHandler(EntityNotFoundException.class) public org.springframework.http.ResponseEntity<ExceptionInfo> entityNotFoundExceptionHandle(EntityNotFoundException exception)
      Handle if shadow was not found for entity.
    • handleException

      @ExceptionHandler(org.springframework.security.access.AccessDeniedException.class) protected org.springframework.http.ResponseEntity<Object> handleException(org.springframework.security.access.AccessDeniedException exception)
      Handle AccessDeniedException exception with saved headers.