[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Customized Error Screens





How about

      eval {do_something};
      dienicely($@) if $@;

I might have the wrong $@ (is it $!?), but the concept is similar.  Eval
allows you to catch the exception and process it with dienicely.

Good luck.
Brian
----
Brian T. Wightman
suppressed
414.524.4025


                                                                                                              
                      suppressed                                                                        
                      m                        To:      suppressed                              
                                               cc:                                                            
                      02/03/03 10:50           Subject: Re: [cgiapp] Customized Error Screens                 
                      AM                                                                                      
                                                                                                              
                                                                                                              




Chris,

     One of my developers created a dienicely sub and we issue

    do_something or dienicely()

     whenever we can but when you have several layers the error is normally
caught prior to dienicely().  We need a better way.

Sincerely,
Kenny Pyatt
President
Venzia
http://www.venzia.com

---------- Original Message -----------
From: Christopher Hicks <suppressed>
To: "CGI::Application mailing list" <suppressed>
Sent: Mon, 3 Feb 2003 10:37:06 -0500 (EST)
Subject: Re: [cgiapp] Customized Error Screens

> On Mon, 3 Feb 2003, Kenny Pyatt wrote:
>
> >      What is the 'best' way to create a customized (read: attractive
and
> > informative) error screen while using CGI::App with HTML::Template and
> > DBI.  Each generate thier own error messages.  We would like to make
two
> > different sets of customized error screens.  One set for development
and
> > another for live sites.  We have managed to do this in some specific
> > error cases but not all.  Any ideas?
>
> Something along these lines that managed to integrate an exception-
> based system and allowed for other Templating systems would be awesome.
>
> --
> </chris>
>
> "Never offend people with style when you can offend them with substance."
>                        - Sam Brown
------- End of Original Message -------


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed





---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.