<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.
Required. The type of error that this custom error page is designed to handle:
Application.cfm
file.
See the table under CFERROR Error Variables in the CFML Language Reference for information about the variables and other constructs available from the templates used to handle each type of error.
Required. The relative path to the custom error handling page. The following table describes the template to use for each type of error.
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 |
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 |
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#.
Required if the type is specified as Exception or Monitor. The type of exception.