joerghoh commented on pull request #6: URL: https://github.com/apache/sling-org-apache-sling-servlets-post/pull/6#issuecomment-739492679
I tried to come up a new proposal (which will eventually be a different PR) at https://github.com/apache/sling-org-apache-sling-servlets-post/compare/master...joerghoh:feature/SLING-9896-make-exception-handling-more-granular It introduces 2 new sub-types of PersistenceException and tries to map the various Exceptions from the JCR operations to either a "retryable" exception (it makes sense to retry the very same operation at a later point) or a "incorrect payload" exception, in which the payload should be adjusted before trying again. These exceptions can be mapped to a different HTTP statuscodes. Of course we still need to handle the general PersistenceException (to which the RepositoryExceptions are mapped). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org