User Guide

Table Of Contents
318 Chapter 14: Handling Errors
The following cferror tag specifies a custom error page for exceptions that occur in locking code
and informs the error page of the of an e-mail address it can use to send a notification each time
this type of error occurs:
<cferror type = "exception"
exception = "lock"
template = "../common/lockexcept.cfm"
mailto = "server@mycompany.com">
For detailed information on the cferror tag, see CFML Reference.
Creating an error application page
The following table lists the rules and considerations that apply to error application pages:
Type Considerations
Validation Cannot use CFML tags.
Can use HTML tags.
Can use the
Error.InvalidFields, Error.validationHeader, and
Error.validationFooter variables by enclosing them with number signs (#).
Cannot use any other CFML variables.
Request Cannot use CFML tags.
Can use HTML tags.
Can use nine CFML error variables, such as
Error.Diagnostics, by enclosing
them with number signs.
Cannot use other CFML variables.
Exception Can use full CFML syntax, including tags, functions, and variables.
Can use nine standard CFML Error variables and cfcatch variables. Use either
Error or cferror as the prefix for both types of variables.
Can use other application-defined CFML variables.
To display any CFML variable, use the
cfoutput tag.