<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.
This tag cannot have a body.
This tag is also supported within <cfscript>
<cferror
type=string
Template=string
mailTo=string
exception=string
>
| Attribute | Description |
|---|---|
type
string, required
|
edit
The type of error that the custom error page handles.
|
Template
string, required
|
edit
The relative path to the custom error page. |
exception
string, optional
|
edit
Type of exception. Required if type = "exception" or "monitor". |
Unimplemented Attribute(s)
| Attribute | Description |
|---|---|
mailTo
string,
optional
|
edit
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. * deprecated * |
Examples
edit<cferror template ="path/to/errorTemplate.cfm" type ="exception" exception ="any" mailTo ="test01@mail.com">
See also
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)