Class WorkflowExceptionHandler
java.lang.Object
com.broadleafcommerce.workflow.web.endpoint.WorkflowExceptionHandler
@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class)
@Order(1000)
public class WorkflowExceptionHandler
extends Object
Convert key exception types into the appropriate HTTP status codes for reporting to the caller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>error(WorkflowBeanNotFoundException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>error(Assert.WorkflowStateAssertionException ex, org.springframework.web.context.request.WebRequest request) protected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtilsvoidsetExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils)
-
Constructor Details
-
WorkflowExceptionHandler
public WorkflowExceptionHandler()
-
-
Method Details
-
error
@ExceptionHandler(WorkflowStateAssertionException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> error(Assert.WorkflowStateAssertionException ex, org.springframework.web.context.request.WebRequest request) -
error
@ExceptionHandler(WorkflowBeanNotFoundException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> error(WorkflowBeanNotFoundException ex, org.springframework.web.context.request.WebRequest request) -
getExceptionHandlerUtils
protected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils getExceptionHandlerUtils() -
setExceptionHandlerUtils
@Autowired public void setExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils)
-