I'd like to ask how to handle ConstraintViolationException during RPC calls ?
Gwt serialization cannot serialize subclasses of the RuntimeException so when I was using gwt-dispatcher in the servlet dispatcher I was catching ConstraintViolationExceptions and I then throwing some kind of my own implementation of the ConstraintViolationException which was passing necessary information to the client side and gwt was able to serialize that exception.
Right know I don't how to handle that case in errai, where can I plug in and provide necessary code to rewrite standard ConstraintViolationException to the implementation which could be serialized to the client side. Also I don't know how does Errai serialize exceptions ? Do I have to put ExposeEntity annotation on the exception class ?
Thanks in advance