User Guide

Table Of Contents
314 Chapter 14: Handling Errors
Error messages and the standard error format
If your application does not handle an error, ColdFusion displays a diagnostic message in the
user’s browser.
Error information is also written to a log file for later review. (For information on error logging,
see “Logging errors with the cflog tag” on page 321.)
The standard error format consists of the information listed in the following table. ColdFusion
does not always display all sections.
Tip: If you get a message that does not explicitly identify the cause of the error, check the key system
parameters, such as available memory and disk space.
Determining error-handling strategies
ColdFusion provides you with many options for handling errors, particularly exceptions, as
described in the section “How ColdFusion handles errors” on page 312. This section describes
considerations for determining which forms of error handling to use.
Handling missing template errors
Missing template errors occur when ColdFusion receives an HTTP request for a page ending in
.cfm that it cannot find. You can create your own missing template error page to present
application-specific information or provide an application-specific appearance. You specify the
missing template error page on the Administrator Settings page.
Section Description
Error description A brief, typically on-line, description of the error.
Error message A detailed description of the error. The error message diagnostic information
displayed depends on the type of error. For example, if you specify an invalid
attribute for a tag, this section includes a list of all valid tag attributes.
Error location The page and line number where ColdFusion encountered the error, followed
by a short section of your CFML that includes the line. This section does not
display for all errors.
In some cases, the cause of an error can be several lines above the place where
ColdFusion determines that there is a problem, so the line that initially causes
the error might not be in the display.
Resources Links to documentation, the Knowledge Base, and other resources that can
help you resolve the problem.
Error environment
information
Information about the request that caused the error. All error messages include
the following:
User browser
User IP address
Date and time of error
Stack trace The Java stack at the time of the exception, including the specific Java class of
the exception. This section can be helpful if you must contact Macromedia
Technical Support.
The stack trace is collapsed by default. Click the heading to display the trace.