Class ProductsRestExceptionHandler

java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
es.kukenan.smartfi.springboot.controller.RestExceptionHandler
es.kukenan.smartfi.microservice.contracts.controller.exception.ProductsRestExceptionHandler

@ControllerAdvice public class ProductsRestExceptionHandler extends es.kukenan.smartfi.springboot.controller.RestExceptionHandler
Products REST service exception handler.
  • 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<Object>
    handleUnexpectedException(ProductsUnexpectedException ex, org.springframework.web.context.request.WebRequest request)
    Handle a ProductsUnexpectedException as undefined error condition.

    Methods inherited from class es.kukenan.smartfi.springboot.controller.RestExceptionHandler

    handleAccessDeniedException, handleAuthenticationException, handleExceptionInternal, handleMissingServletRequestParameter, handleRuntimeException, handleUnexpectedException, handleWalletException

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

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

    Methods inherited from class java.lang.Object

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

    • ProductsRestExceptionHandler

      public ProductsRestExceptionHandler()
  • Method Details

    • handleUnexpectedException

      @ExceptionHandler(ProductsUnexpectedException.class) public org.springframework.http.ResponseEntity<Object> handleUnexpectedException(ProductsUnexpectedException ex, org.springframework.web.context.request.WebRequest request)
      Handle a ProductsUnexpectedException as undefined error condition.
      Parameters:
      ex - the exception thrown.
      request - the request in which context the exception has been thrown.
      Returns:
      the entity that wraps the JSON error response.