Class EPersonNameNotProvidedException

All Implemented Interfaces:
Serializable, TranslatableException

public class EPersonNameNotProvidedException 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:
Bruno Roemers (bruno.roemers at atmire.com)
See Also:
  • Field Details

  • Constructor Details

    • EPersonNameNotProvidedException

      public EPersonNameNotProvidedException()
    • EPersonNameNotProvidedException

      public EPersonNameNotProvidedException(Throwable cause)
  • Method Details