Hi Stokes, Good point, I've added a getStatus(Throwable, Request, Response) method to StatusService that let you override the default behavior. Checked in SVN.
Best regards, Jerome > -----Message d'origine----- > De : news [mailto:[EMAIL PROTECTED] De la part de Stokes > Envoyé : mercredi 7 mars 2007 22:54 > À : [email protected] > Objet : installing custom error handling without "SEVERE:" > messages in the log > > To provide my own (xml rendering of) error messages, I > created a subclass of > StatusService as the tutorial suggests > (http://www.restlet.org/tutorial#part08). > > I install my StatusService in my Application, and that works > as expected. I can > handle things like missing resources by throwing special > exceptions in my Finder > classes that get rendered appropriately. > > But in such cases, when my StatusService is handling things nicely, > StatusFilter.doHandle() is still logging a SEVERE message > with the exception and > stack trace. In such cases I'd rather the log be quiet. > > I can work around it by overriding handle() in my main > router, catching the > exception and setting a response status, then _not_ > rethrowing. This doesn't > feel quite right though. > > Is there a better way to set this up? > > Stokes.

