Class ParseExceptionAdvisor

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

@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class ParseExceptionAdvisor extends Object
Default controller exception handler for parsing problems related to structured input from a outside call to the service. To override, introduce a new ControllerAdvice annotate class with differing ExceptionHandler annotated methods and annotate the class with a higher prededence Order annotation.
Author:
Jeff Fischer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
    handleInvalidDataAccessApiUsageException(org.springframework.dao.InvalidDataAccessApiUsageException ex, org.springframework.web.context.request.WebRequest request)
     
    org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
    handleParseException(ParseException ex, org.springframework.web.context.request.WebRequest request)
     
    org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
    handleSortParseException(org.springframework.data.mapping.context.InvalidPersistentPropertyPath ex, org.springframework.web.context.request.WebRequest request)
     
    protected void
    logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)
     

    Methods inherited from class java.lang.Object

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

    • ParseExceptionAdvisor

      public ParseExceptionAdvisor()
  • Method Details

    • handleParseException

      @ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleParseException(ParseException ex, org.springframework.web.context.request.WebRequest request)
    • handleSortParseException

      @ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleSortParseException(org.springframework.data.mapping.context.InvalidPersistentPropertyPath ex, org.springframework.web.context.request.WebRequest request)
    • handleInvalidDataAccessApiUsageException

      @ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidDataAccessApiUsageException(org.springframework.dao.InvalidDataAccessApiUsageException ex, org.springframework.web.context.request.WebRequest request)
    • logDebug

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