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
In reply to Re: Re: CGI Error Handling
by hakkr
in thread CGI Error Handling
by uwevoelker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |