ColdFusion displays error pages that can help you to debug your application. There are two types of errors in ColdFusion:
- REQUEST -- Request errors occur when a application page is requested and there is an error in the page's code.
- VALIDATION -- Validation errors occur when a user violates the form field validation rules during a form submittal.
By default, ColdFusion returns a standard page for these errors. But you may want to customize the error pages that are returned, to make them consistent with the look and feel of your application. Custom error pages also allow you to control the error information that users see, as well as offering work-arounds or ways for users to report the errors.
You set the custom error application pages with the CFERROR tag. You can set the custom error application pages page-by-page, but because custom error pages generally apply to an entire application, it is more efficient to include the CFERROR tag in the Application.cfm file. After you create a custom error page, you must include the CFERROR tag in your application's Application.cfm page.
For information on the syntax of the CFERROR tag, see the CFML Language Reference.
|