@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class PolicyExceptionAdvisor extends Object
Policy
related validation problems. To override,
introduce a new ControllerAdvice annotate class with differing ExceptionHandler annotated methods
and annotate the class with a higher precedence Order annotation.Constructor and Description |
---|
PolicyExceptionAdvisor() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleNotMutableException(Exception ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleNotPermittedException(Exception ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> |
handleNotVisibleException(Exception ex,
org.springframework.web.context.request.WebRequest request) |
protected void |
logDebug(Exception ex,
org.springframework.web.context.request.WebRequest request) |
@ExceptionHandler(value=NotVisibleException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleNotVisibleException(Exception ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler(value=NotPermittedException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleNotPermittedException(Exception ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler(value=NotMutableException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleNotMutableException(Exception ex, org.springframework.web.context.request.WebRequest request)
protected void logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)
Copyright © 2021. All rights reserved.