- Issue created by @tedbow
- πΊπΈUnited States tedbow Ithaca, NY, USA
Postponed on β¨ AutoSave Entity Revision POC Active
In β¨ AutoSave Entity Revision POC Active @wim leers suggested create a new exception class
These two may throw an UnprocessableHttpEntityException, which can carry errors, see \Drupal\jsonapi\Exception\UnprocessableHttpEntityException::setViolations() for an example. Here, they wouldn't be constraint violations, but just "errors".
I, tedbow, hope we can do that in this follow-up
Create a new exception class UnprocessableHttpEntityException
similar to `\Drupal\jsonapi\Exception\UnprocessableHttpEntityException`
except that it would have a setErrors
method instead of setViolations
We could have override getMessages()
to construct 1 message with all the errors
Active
0.0
Code
Postponed on β¨ AutoSave Entity Revision POC Active