curiouscat.comCurious Cat Code
curiouscat.com > Code > ColdFusion Error Trapping
Purpose: Catch error messages generated by Cold Fusion server and
    1) Notify the Web Developer of the error, and
    2) Give the web site visitor a nicer page than the standard error page.
Code: CFML, HTML
In this simple example we will use 3 files. To catch the error place the following code in the application.cfm file.

Then add the catcherror.cfm template (code below) to an error directory. This file with submit the error parameters and values to the errormessage.cfm template.

   
Finally add the errormessage.cfm template to the error directory.

We hope this is helpful. More Curious Cat Code.

© 1996-2006   curiouscat.com
Curious Cat web site by Curious Cat Creations. We can create or improve your online presence.