Adobe COLDFUSION 9 Manual page 286

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
Section
Description
Error description
A brief, typically online, 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 about the request that caused the error. All error messages include the following:
information
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 is helpful if you
must contact Adobe Technical Support.
The stack trace is collapsed by default. Click the heading to display the trace.
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
ColdFusion handles
errors" on page 279. The considerations for determining which forms of error handling to use are
as follows:
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.
The missing error page can use CFML tags and variables. In particular, you can use the CGI.script_name variable in
text such as the following to identify the requested page:
<cfoutput>The page #Replace(CGI.script_name, "/", "")# is not available.<br>
Make sure that you entered the page correctly.<br>
</cfoutput>
(In this code, the
function removes the leading slash sign from the script name to make the display more
Replace
friendly.)
Last updated 8/5/2010
281
"How

Advertisement

Table of Contents
loading

Table of Contents