Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Define Custom Error Pages

Status
Not open for further replies.

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]
 
Hey,
We use the <CFTRY> and <CFCATCH> tags to handle any errors produced from coldfusion... something like this...

<CFTRY>

...CFM content...

<CFCATCH TYPE=&quot;Any&quot;>
<CFLOCATION URL=&quot;app_error.cfm&quot; ADDTOKEN=&quot;No&quot;>
</CFCATCH>
</CFTRY>

This will direct any errors to a app_error.cfm file that could display some type of &quot;Sorry, temporary problems..&quot; type of thing.

Ryan [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top