3-1-Tags:CFError
last edited by
lmajano
on 23-Aug-2009
cferror
Description
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.
Category
Other
Implemented
Usage Syntax
<cferror type="String" Template="String" [mailTo="String"] [exception="String"] />
[] = Optional attribute
Attributes
| Name | Type | Required | Default | Description |
| type | String | Yes | The type of error that the custom error page handles. | |
| Template | String | Yes | The relative path to the custom error page. | |
| mailTo | String | No | 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 | No | Type of exception. Required if type = "exception" or "monitor". |
Example Usage
You need to login in order to comment!
Paul Klinkenberg said
at 10:37:31 AM 02-Apr-2010
Unfortunately, only <cferror type="exception" /> is allowed.
Any other option (request, validation,..) gives the following error msg: "invalid type for tag error - only exception is supported"
This is especially unfortunate because by default you will now get an ugly error on-screen when someone requests a non-existent .cfm-file on your site, instead of being redirected to whatever 404-template you got in-place.
SideBar
User Login
Comments (