Class RESTBitstreamNotFoundException

All Implemented Interfaces:
Serializable, TranslatableException

public class RESTBitstreamNotFoundException 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.

Author:
Jens Vannerum (jens.vannerum@atmire.com)
See Also:
  • Field Details

  • Constructor Details

    • RESTBitstreamNotFoundException

      public RESTBitstreamNotFoundException(String uuid)
  • Method Details