Class UnprocessableEntityException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.dspace.app.rest.exception.UnprocessableEntityException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EPersonNameNotProvidedException, GroupHasPendingWorkflowTasksException, GroupNameNotProvidedException, IncompleteItemRequestException, PasswordNotValidException, RESTBitstreamNotFoundException, RESTEmptyWorkflowGroupException

@ResponseStatus(value=UNPROCESSABLE_ENTITY, reason="Unprocessable request") public class UnprocessableEntityException extends RuntimeException
Unprocessable request: Can be specified with a 422 (Unprocessable Entity) response ([RFC4918], Section 11.2) when the server understands the patch document and the syntax of the patch document appears to be valid, but the server is incapable of processing the request. This might include attempts to modify a resource in a way that would cause the resource to become invalid; A response json object should be returned with more details about the exception TODO (i.e. the idx of the patch operation that fail, detail about the failure on execution such as wrong idx in an array path, unsupported patch operation, etc.)
Author:
Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
See Also:
  • Constructor Details

    • UnprocessableEntityException

      public UnprocessableEntityException(String message, Throwable cause)
    • UnprocessableEntityException

      public UnprocessableEntityException(String message)