Class RESTEmptyWorkflowGroupException

All Implemented Interfaces:
Serializable, TranslatableException

public class RESTEmptyWorkflowGroupException extends UnprocessableEntityException implements TranslatableException

Extend UnprocessableEntityException to provide a specific error message in the REST response. The error message is added to the response in DSpaceApiExceptionControllerAdvice.handleCustomUnprocessableEntityException(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse, org.dspace.app.rest.exception.TranslatableException), hence it should not contain sensitive or security-compromising info.

Note there is a similarly named error in the DSpace API module.

Author:
Bruno Roemers (bruno.roemers at atmire.com)
See Also: