-
1. Re: observer exception break the list of observers
lvdberg Oct 20, 2010 10:02 AM (in response to emadomara)Hi,
the events are
chained
, meaning it calls the methods sequentalyy, so if you have an error the rest will not work. If you need a certain quality of service, fire different events.Leo
-
2. Re: observer exception break the list of observers
emadomara Oct 20, 2010 10:11 AM (in response to emadomara)Hi,
thanks Leo for ur fast reply , i knew that this is applied in raiseEvent() method implementation but is this applied in others types of raising the same event for example
the asynchronous raise ?thanks
Emad -
3. Re: observer exception break the list of observers
lvdberg Oct 20, 2010 10:30 AM (in response to emadomara)Hi,
The Asynchronous events work the same, only in another (single) thread, so there you have the same problem. I think the best way to tackle your problem is to (1) catch the exception or (2) fire different events.
Leo
-
4. Re: observer exception break the list of observers
cash1981 Oct 21, 2010 4:06 AM (in response to emadomara)I dont know if this will work, but what about catching the exception and raising the event again, with an additional parameter so that you know it comes from an exception, so that you can at the final observer throw the exception?
-
5. Re: observer exception break the list of observers
emadomara Oct 21, 2010 7:38 AM (in response to emadomara)Hi ,
thanks for all ur replies i think the solution of catching the exceptions will be the good solution for my business need .Emad