Contents > Developing ColdFusion MX Applications > Handling Errors > Understanding errors > How ColdFusion handles errors Runtime exception errors PreviousNext

Runtime exception errors

If ColdFusion encounters a runtime exception, it does the action for the first matching condition in the following table:

Condition

Action

The code with the error is inside a cftry tag and the exception type is specified in a cfcatch tag.

Executes the code in the cfcatch tag.

If the cftry block does not have a cfcatch tag for this error, tests for an appropriate cferror handler or site-wide error handler.

A cferror tag specifies an exception error handler for the exception type.

Uses the error page specified by the cferror tag.

The Administrator Settings Site-wide Error Handler field specifies an error handler page.

Uses the custom error page specified by the Administrator setting.

A cferror tag specifies a Request error handler.

Uses the error page specified by the cferror tag.

The default case.

Uses the standard error message format

For example, if an exception occurs in CFML code that is not in a cftry block, but a cferror tag specifies a page to handle this error type, ColdFusion uses the specified error page.


Contents > Developing ColdFusion MX Applications > Handling Errors > Understanding errors > How ColdFusion handles errors Runtime exception errors PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.