Sylvain Wallez wrote:

Reinhard Poetz wrote:

Thank you!

This means that the service layer is aware of which widgets exist? I'm not sure if I (and especially my customer) likes this bi-directional dependency...



Nono! Your validation code has to catch the exception and translate it into a validation error. This means you can have "regular" validation errors (i.e. the backend could be reached but detected invalid data) and communication-level errors, e.g. "could not validate data, try again later".

Exactly! Although in our case, the exception gets caught and translated into multiple validation errors, rather than just a single one.


Vil.

Reply via email to