<CFERROR 
    TYPE="Request" or "Validation" or "Monitor" or "Exception"
    TEMPLATE="template_path"
    MAILTO="email_address"
    EXCEPTION="exception_type">

Provides the ability to display customized HTML pages when errors occur. This allows you to maintain a consistent look and feel within your application even when errors occur.

TYPE

Required. The type of error that this custom error page is designed to handle:

TEMPLATE

Required. The relative path to the custom error handling page. The following table describes the template to use for each type of error.

Types and Their Corresponding Custom Error Pages

Type Custom Error Page
Exception An exception-handling template that is dynamically invoked by the CFML language processor when it detects an unhandled exception condition. Exception-handling templates may be specified as part of an application, via the tag, or may be set via the ColdFusion Administrator. An exception-handling template can use the full range of CFML tags, making it significantly more powerful than . This template also has access to the error variables in the table under CFERROR Error Variables.
Request This template can include only the error variables described in the table under CFERROR Error Variables and cannot include CFML tags. It is useful as a backup error handler for sites with high user interface requirements.
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 / or handlers for the exception. Exception-monitoring templates are useful for monitoring and debugging exception handling within complex applications.

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.