96
Types of recoverable exceptions
Type
Application-defined
exception events
Database failures
Template errors
Missing included file
errors
Object exceptions
Security exceptions
Expression exceptions
Locking exceptions
Custom exceptions
Unexpected internal
exceptions
Tag(s)
CFTHROW
CFCATCH TYPE="Application"
CFCATCH TYPE="Any"
a CFCATCH block that has no TYPE
attribute
CFCATCH TYPE="Database"
CFCATCH TYPE="Any"
CFCATCH TYPE="Template"
CFCATCH TYPE="Any"
CFCATCH TYPE="MissingInclude"
CFCATCH TYPE="Any"
CFCATCH TYPE="Object"
CFCATCH TYPE="Security"
CFCATCH TYPE="Expression"
CFCATCH tag with TYPE="Lock"
CFCATCH
TYPE=" your_custom_exception_type
"
CFCATCH TYPE="Any"
Developing Web Applications with ColdFusion
Notes
Raise exceptions using the
CFTHROW tag (with an optional
diagnostic message), then catch
using CFCATCH.
If you specify the type to be
"APPLICATION," the CFCATCH tag
catches only those custom
exceptions that have been specified
as having the APPLICATION type in
the CFTHROW tag that defines
them.
Catch failed database operations,
such as failed SQL statements, ODBC
problems, and so on.
Catch general application page
errors.
The tags that throw an exception of
TYPE="TEMPLATE" are CFINCLUDE,
CFMODULE, and CFERROR.
Catch errors for missing included
files.
Catch exceptions in ColdFusion
code that works with objects.
Raise catchable exceptions in
ColdFusion code that works with
security.
Catch exceptions when an
expression fails evaluation.
Catch failed locking operations,
such as when a CFLOCK critical
section times out or fails at runtime.
Specify a custom type as well as one
of the predefined types.
Catch unexpected exceptions
Need help?
Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?