Right, but I'd like to have a handler if something wrong goes in request processing, when the user sees the backtrace on the screen.<br><br>Andrew<br><br><div><span class="gmail_quote">On 4/8/07, <b class="gmail_sendername">
Yoni Rabkin Katzenell</b> <<a href="mailto:yoni-r@actcom.com">yoni-r@actcom.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
"Andrei Stebakov" <<a href="mailto:lispercat@gmail.com">lispercat@gmail.com</a>> writes:<br><br>> What's the best to add my own error handler? I see there is some processing<br>> based on *SHOW-LISP-ERRORS-P* *SHOW-LISP-BACKTRACES-P* inside
<br>> process-request function, but it doesn't allow to add a user handler of the<br>> error (or I just didn't find it). Let's say I don't want a user to see the<br>> error (only some nice reassuring message :)) and I want to be notified by an
<br>> email with the backtrace. Should I go and modify the body of the<br>> process-request function (which I'll need to merge with every new release of<br>> HT) or is there a way to add my own handler outside of the Hunchentoot code?
<br><br>I've generally found it enough to define error handlers just like I<br>usually do in CL:<br><br>(defun foo ()<br>  "Display the foo page"<br>    (handler-case<br>        (... faulty code which might produce some error ...)
<br>      (error () (display-a-nice-error-message))))<br><br>--<br>   "Cut your own wood and it will warm you twice"<br>_______________________________________________<br>tbnl-devel site list<br><a href="mailto:tbnl-devel@common-lisp.net">
tbnl-devel@common-lisp.net</a><br><a href="http://common-lisp.net/mailman/listinfo/tbnl-devel">http://common-lisp.net/mailman/listinfo/tbnl-devel</a><br></blockquote></div><br>