Macromedia coldfusion 4.5-cfml language reference User Manual

Page of 608
Chapter 1:  ColdFusion Tags
37
MAILTO
Optional. The email address of the administrator who should be notified of the 
error. This value is available to your custom error page using the MailTo property 
of the error object, such as #Error.MailTo#. 
EXCEPTION
Required if the type is specified as Exception or Monitor. The type of exception.
Usage
The CFERROR tag is normally used to customize the error messages for all the pages in 
an application. As a result, you generally embed it in the 
Application.cfm
 file. For 
more information about the 
Application.cfm
 file, refer to Developing Web 
Applications with ColdFusion
To help ensure that error pages display successfully, pages you specify with CFERROR 
should not be encoded with the 
cfencode
 utility. 
CFERROR Error Variables
The exception-handling template specified in the TEMPLATE attribute of the 
CFERROR tag may contain one or more error variables, which will be substituted by 
ColdFusion when an error is displayed.
Types and Their Corresponding Custom Error Pages (Continued)
Type
Custom Error Page
Request
This template can include only the error variables 
described in the table under 
CFERROR Error 
Variables
 and cannot include CFML tags. It 
LVXVHIXO
DVDEDFNXSHUURUKDQGOHUIRUVLWHVZLWKKLJK
XVHULQWHUIDFHUHTXLUHPHQWV
Validation
A validation error handler. It handles data input 
validation errors that occur when submitting a form. 
It is useful only if placed inside the Application.cfm 
file.
Monitor
An exception-monitoring template is dynamically 
invoked by the CFML language processor when it 
first detects an exception condition, before it 
searches for <CFTRY>/<CFCATCH> or <CFERROR> 
handlers for the exception.
Exception-monitoring templates are useful for 
monitoring and debugging exception handling 
within complex applications.