cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vilya Harvey <vilya.har...@gmail.com>
Subject Re: [cForms] Errors coming from service layer
Date Mon, 14 Mar 2005 15:27:06 GMT
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.

Mime
View raw message