Types Of Recoverable Exceptions Supported - MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual

Table of Contents

Advertisement

Handling Exceptions in ColdFusion

Types of recoverable exceptions supported

ColdFusion Server supports several types of recoverable exceptions. Use the
attribute in the
also use these types as the values of the
type=exception
You can specify the following basic exception types. For a list of advanced exception
types, see the CFML Reference.
Type
Database failures
Template errors
Missing included file
errors
Object exceptions
Security exceptions
Expression exceptions
Locking exceptions
Application-defined
exception events
raised by
cfthrow
Custom exceptions
raised by
cfthrow
Unspecified
exceptions
Specifying the type as
exceptions, memory allocation errors, and access violations, which you might not be
prepared to handle.
tag to determine which type of exception to catch. You can
cfcatch
tags.
Tag(s)
cfcatch type="Database"
cfcatch type="Template"
cfcatch type="missingInclude"
cfcatch type="Object"
cfcatch type="Security"
cfcatch type="Expression"
cfcatch type="Lock"
cfcatch type="Application"
a cfcatch block that has no
type attribute
cfcatch
type="custom_exception_type"
cfcatch type="Any"
any
exception
Notes
Catch failed database operations, such as
failed SQL statements, ODBC problems,
and so on.
Catch general application page errors.
The
tags can generate a template exception.
Catch errors where included files are
missing.
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
fails at runtime.
Catch only those custom exceptions that
are specified as having the Application type
in the
Catch a custom a exception type raised by
cfthrow
Catch any exceptions that are not
specifically handled in another error
handler, including unexpected internal
errors.
causes the ColdFusion Application Server to catch internal
attribute in
cferror
,
cfinclude
cfmodule
critical section times out or
cflock
tag that defines them.
cfthrow
.
205
type
, and
cferror

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents