ColdFusion 9.0 Resources |
Specifying a custom error pageYou specify the custom error pages with the cferror tag. For Validation errors, the tag must be in the Application.cfc initialization code or on the Application.cfm page. For Exception and Request errors, you can set the custom error pages on each application page. However, because custom error pages generally apply to an entire application, it is more efficient to place these cferror tags in the Application.cfc or Application.cfm file also. For more information on using these pages, see Designing and Optimizing a ColdFusion Application The cferror tag has the attributes listed in the following table:
The following cferror tag specifies a custom error page for exceptions that occur in locking code and informs the error page of the e-mail address to use to send a notification each time this type of error occurs: <cferror type = "exception" exception = "lock" template = "../common/lockexcept.cfm" mailto = "server@mycompany.com"> For detailed information on the cferror tag, see the CFML Reference. |