Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 296

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
Property variable
cfcatch.NativeErrorCode
cfcatch.SQLState
cfcatch.Sql
cfcatch.queryError
cfcatch.where
Expression exceptions
The following variable is only available for Expression exceptions:
Property variable
cfcatch.ErrNumber
Locking exceptions
The following additional information is available for exceptions related to errors that occur in
Property variable
cfcatch.lockName
cfcatch.lockOperation
Missing include exceptions
The following additional variable is available if a missing file specified by a
Property variable
cfcatch.missingFileName
Using the cftry tag: an example
The following example shows the
examples listed here use, and a sample included file,
If an exception occurs when you run the
=
cfcatchtype
"Database"
the
=
cfcatchtype
"Database"
exceptions raised by the
cfinclude
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
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
The SQL statement sent to the data source.
The error message as reported by the database driver.
If the query uses the cfqueryparam tag, query parameter name-value pairs.
Description
An internal expression error number, valid only when
Description
The name of the affected lock. This is set to "anonymous" if the lock name is unknown.
The operation that failed. This is set to "unknown" if the failed operation is unknown.
Description
The name of the missing file.
and
tags. It uses the cfdocexamples data source, which many of the
cftry
cfcatch
includeme.cfm.
statement, the application page flow switches to the
cfquery
exception handler. It then resumes with the next statement after the
handler completes. Similarly, the
tag.
Last updated 1/20/2012
are driver-dependent.
cfcatch.nativeErrorCode
cfcatch.SQLState
type="Expression"
tag causes the error.
cfinclude
=
cfcatchtype
"MissingInclude"
291
is -1. The value is 0
is -1.
.
tags:
cflock
block, once
cftry
block handles

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents