in reply to Re: CGI Error Handling
in thread CGI Error Handling
I like eval blocks
eval { #any code in here yourSub(); } if ($@){ # $@ contains err message if error occurs warn " continue with script but there has been an erro $@ \n"; #run error handling routine ErrorHandle(); }
The average user finds a standard Apache error page v scary so I try and make an error doc for every error possible.
Update amended to consider belowErrorDocument 404 /missing.html ErrorDocument 401 /auth_error.html
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 3: CGI Error Handling
by tilly (Archbishop) on Dec 10, 2001 at 18:19 UTC | |
by hakkr (Chaplain) on Dec 10, 2001 at 19:40 UTC |
In Section
Seekers of Perl Wisdom