User Guide

Table Of Contents
Specifying custom error messages with the cferror tag 319
The following table describes the variables available on error pages:
Exception error pages can also use all of the exception variables listed in the section “Exception
information in cfcatch blocks” on page 325. To use these variables, replace the
cfcatch prefix
with
cferror or error. For example, to use the exception message in an error page, refer to it as
error.message.
Error page type Error variable Description
Validation error.invalidFields Unordered list of validation errors that occurred. This
includes any text that you specify in the value
attribute or a hidden tag used to validate form input.
error.validationHeader Text for the header of the default validation message.
error.validationFooter Text for the footer of the default validation message.
Exception and
request
error.browser Browser that was running when the error occurred.
error.dateTime Date and time when the error occurred.
error.diagnostics Detailed error diagnostics.
error.generatedContent Any content that ColdFusion generated in response
to the request prior to the error.
error.HTTPReferer Page containing the HTML link to the page on which
the error occurred. This value is an empty string if the
user specified the page directly in the browser.
error.mailTo E-mail address of the administrator who should be
notified. This value is set in the
mailTo attribute of the
cferror tag.
error.queryString URL query string of the client's request, if any.
error.remoteAddress IP address of the remote client.
error.template Page being executed when the error occurred.
Exception only error.message Error message associated with the exception.
error.rootCause Java servlet exception reported by the JVM as the
cause of the "root cause" of the exception. This
variable is a Java object.
error.tagContext Array of structures containing information for each
tag in the tag stack The tag stack consists of each tag
that is currently open. For more information, see
“Exception information in cfcatch blocks”
on page 325
error.type Exception type. For more information, see “About
ColdFusion exceptions” on page 310.