On Wed, 1 Nov 2000, Dave Rolsky wrote:

> On Wed, 1 Nov 2000, Paul J. Lucas wrote:
> 
> >     If I'm a few levels deep into function calls, I'd liek to be
> >     able to do something like "return SERVER_ERROR" and have the
> >     entire call stack unwind and the current request stopped.
> > 
> >     Is there any way to do that?
> 
> Not that this has anything to do with mod_perl really but ...
> 
> Use exceptions.  There's a section in the guide on them some crazy guy
> wrote ;)
> 
> I recommend my Exception::Class module on CPAN.  But I would do that,
> wouldn't I?

I'll second that recommendation, at citysearch we are using
Exception::Class very successfully.  We are able to trap all sorts of
errors and the overhead is fairly small.

Craig



Reply via email to