Hi Schley,

Good feed-back, I've just added an onError(Throwable) method on
UniformResource. It is invoked on error or exception in resource
initialization, handling or releasing.

Best regards,
Jerome Louvel
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

-----Message d'origine-----
De : Schley Andrew Kutz [mailto:sak...@gmail.com] 
Envoyé : mercredi 24 juin 2009 23:00
À : discuss@restlet.tigris.org
Objet : Architecture question

I have moved my application from sub-classing Restlets to sub-classing  
Resources and am now relying on annotations to process incoming  
requests (@Get for ex.). However, one of the nice side-effects of  
processing requests with the catch-all handle method is that it allows  
me to have one place to catch exceptions. My question is this: Is  
there a way to catch all exceptions with one method (an onError event  
handler for ex.) so that I can decide what to do with them there?  


"Ideally, a code library must be immediately usable by naive  
developers, easily customized by more sophisticated developers, and  
readily extensible by experts." -- L. Stein



Reply via email to