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 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)