MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual page 302

Developing coldfusion mx applications
Table of Contents

Advertisement

Property variable
cfcatch.RootCause
cfcatch.TagContext
cfcatch.Type
Note: If you use
cfdump
not have values.
The
cfcatch.TagContext
structure represents one level of the active tag context at the time when ColdFusion detected the
exception. That is, there is one structure for each tag that is open at the time of the exception. For
example, if the exception occurs in a tag on a custom tag page, the tag context displays
information about the called custom tag and the tag in which the error occurs.
The structure at position 1 in the array represents the currently executing tag at the time the
exception was detected. The structure at position
the initial tag in the stack of tags that were executing when the compiler detected the exception.
The following table lists the tagContext structure attributes:
Entry
Column
ID
Line
Raw_Trace
Template
Type
Database exceptions
The following additional variables are available whenever the exception type is database:
Property variable
cfcatch.NativeErrorCode
cfcatch.SQLState
302
Chapter 14: Handling Errors
Description
The Java servlet exception reported by the JVM as the cause of the "root
cause" of the exception.
An array of structures structure containing information for each tag in the
tag stack The tag stack consists of each tag that is currently open.
The exception's type, returned as a string.
to display the cfcatch variable, the display does not include variables that do
variable contains an array of tag information structures. Each
Description
Obsolete (retained for backwards compatibility). Always 0.
The tag in which the exception occurred. Exceptions in CFScript are indicated by
two question marks (??). All custom tags, including those called directly, are
identified as cfmodule.
The line on the page in which the tag is located.
The raw Java stack trace for the error.
The pathname of the application page that contains the tag.
The type of page; it is always a ColdFusion page.
Description
The native error code associated with this exception. Database
drivers typically provide error codes to assist in the diagnosis of
failing database operations. The values assumed by
cfcatch.NativeErrorCode
If no error code is provided, the value of
1. The value is 0 for queries of queries.
The SQLState code associated with this exception. Database drivers
typically provide error codes to assist in the diagnosis of failing
database operations. SQLState codes are more consistent across
database systems than native error codes.
If the driver does not provide an SQLState value, the value of
cfcatch.SQLState
ArrayLen(cfcatch.tagContext)
are driver-dependent.
cfcatch.nativeErrorCode
is -1.
represents
is -

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Coldfusion mx

Table of Contents