Class UnsortablePositionExceptionAdvisor
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.web.UnsortablePositionExceptionAdvisor
-
@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class UnsortablePositionExceptionAdvisor extends Object
Default controller exception handler for problems related to an improperSortPositionRequest
. 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 Summary
Constructors Constructor Description UnsortablePositionExceptionAdvisor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handleUnsortablePositionException(Exception ex, org.springframework.web.context.request.WebRequest request)
protected void
logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)
-
-
-
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)
-
-