Sep 24, 2000 #1 rmz8 Programmer Aug 24, 2000 210 US How can I set the server to transfer to a specific page if ANY ColdFusion error is encountered (regardless of type)? Do I use Application.cfm? How would I go about doing this? [sig]<p>Ryan ;-]<br>[/sig]
How can I set the server to transfer to a specific page if ANY ColdFusion error is encountered (regardless of type)? Do I use Application.cfm? How would I go about doing this? [sig]<p>Ryan ;-]<br>[/sig]
Sep 26, 2000 #2 rdiller Programmer Sep 13, 2000 9 US Hey, We use the <CFTRY> and <CFCATCH> tags to handle any errors produced from coldfusion... something like this... <CFTRY> ...CFM content... <CFCATCH TYPE="Any"> <CFLOCATION URL="app_error.cfm" ADDTOKEN="No"> </CFCATCH> </CFTRY> This will direct any errors to a app_error.cfm file that could display some type of "Sorry, temporary problems.." type of thing. Ryan [sig][/sig] Upvote 0 Downvote
Hey, We use the <CFTRY> and <CFCATCH> tags to handle any errors produced from coldfusion... something like this... <CFTRY> ...CFM content... <CFCATCH TYPE="Any"> <CFLOCATION URL="app_error.cfm" ADDTOKEN="No"> </CFCATCH> </CFTRY> This will direct any errors to a app_error.cfm file that could display some type of "Sorry, temporary problems.." type of thing. Ryan [sig][/sig]