Tag Context Information - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

98
Exception Property Variables (Continued)
Property variable
CFCATCH.ERRORCODE
CFCATCH.TAGCONTEXT

Tag context information

The ColdFusion Administrator's debugging settings page allows you to"Enable CFML
stack trace." When this setting is enabled, CFCATCH blocks make available an array of
structures called CFCATCH.TagContext. Each structure represents one level of the
ColdFusion runtime's active tag context at the time when the ColdFusion interpreter
detected the exception.
The structure at position 1 of the array represents the outermost tag in the stack of tags
that were executing when the interpreter detected the exception. The structure at
position ArrayLen(CFCATCH.TAGCONTEXT) represents the currently executing tag at
the time the interpreter detected the exception.
The TagContext structures have the following attributes:
TEMPLATE — The pathname of the application page that contains the tag.
LINE and COLUMN — The tag's line number and column number within the
application page.
Note
Turn off "Enable CFML stack trace" to avoid having production servers
expend resources creating a traceback stack by default. When this setting
is disabled, CFCATCH.TAGCONTEXT is a zero-length array.
Developing Web Applications with ColdFusion
Description
Any exception that is a part of the CFML exception
hierarchy supplies a value for this variable.
For
TYPE="Application"
supply a value for this code via the ERRORCODE
attribute. For
CFCATCH.ERRORCODE has the
Type="Database"
same value as CFCATCH.SQLSTATE. Otherwise,
the value of CFCATCH.ERRORCODE is the empty
string.
Provides the name and position of each tag in the tag
stack and the full path names of the files that contain
the tags in the tag stack.
CFTHROW tags may

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

This manual is also suitable for:

Coldfusion 4.5

Table of Contents