Class ExceptionHandlerRegistry

java.lang.Object
com.broadleafcommerce.vendor.web.endpoint.exception.ExceptionHandlerRegistry

@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class ExceptionHandlerRegistry extends Object
General exception handler registry for handlers not exclusive to a single controller.
Author:
Jon Fleschler (jfleschler)
  • Constructor Details

    • ExceptionHandlerRegistry

      public ExceptionHandlerRegistry()
  • Method Details

    • handleEntityMissingException

      @ExceptionHandler(com.broadleafcommerce.data.tracking.core.exception.EntityMissingException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleEntityMissingException(Exception ex, org.springframework.web.context.request.WebRequest request)
    • handleInvalidTranslationRequestException

      @ExceptionHandler(com.broadleafcommerce.translation.mapping.InvalidTranslationRequestException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidTranslationRequestException(Exception ex, org.springframework.web.context.request.WebRequest request)