Class UnsortablePositionExceptionAdvisor


  • @RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class)
    public class UnsortablePositionExceptionAdvisor
    extends Object
    Default controller exception handler for problems related to an improper SortPositionRequest. Most often this stems from a request to move a Sortable entity to a position following another Sortable entity that is not already explicitly sorted. 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 Detail

      • UnsortablePositionExceptionAdvisor

        public UnsortablePositionExceptionAdvisor()
    • Method Detail

      • handleUnsortablePositionException

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

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