Class EntityMissingExceptionAdvisor

java.lang.Object
com.broadleafcommerce.data.tracking.core.web.EntityMissingExceptionAdvisor

@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class EntityMissingExceptionAdvisor extends Object
Handle the entity missing exception to return a 404 status response.
  • Constructor Details

    • EntityMissingExceptionAdvisor

      public EntityMissingExceptionAdvisor()
  • Method Details

    • handleEntityMissingException

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

      protected void logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)