<cferror>

Enables the display of customized HTML pages when errors occur. This lets you maintain a consistent look and feel within your application, even when errors occur.

Usage

<cferror
    [mailto=string]
    [exception=string]
    template=string
    type=string
>

This tag cannot have a body.

This tag is also supported within cfscript

Attributes

Attribute Description
mailto
(string, optional)

The e-mail address of the administrator to notify of the error. The value is available to your custom error page in the MailTo property of the error object.

exception
(string, optional)

Type of exception. Required if type = "exception" or "monitor".

template
(string, required)

The relative path to the custom error page.

type
(string, required)

The type of error that the custom error page handles.

Examples

There are currently no examples for this tag.