Chapter 11
Preventing and Handling
Errors
ColdFusion includes many tools and techniques for ensuring that your code works
properly. These tools include sophisticated debugging and code validation tools,
error logging tools, and error handling mechanisms. This chapter describes these
tools and presents approaches to troubleshooting common problems.
ColdFusion Studio also provides interfaces for debugging application pages and for
dynamically validating multiple levels of HTML and CFML code. This chapter does
not discuss debugging in ColdFusion Studio.
Contents
•
Debug Settings in the ColdFusion Administrator................................................. 192
•
CFML Code Validation............................................................................................ 194
•
Troubleshooting Common Problems .................................................................... 195
•
Error Handling in ColdFusion ................................................................................ 197
•
Generating Custom Error Messages with cferror ................................................. 199
•
Logging Errors ......................................................................................................... 202
•
Handling Exceptions in ColdFusion ...................................................................... 204
Summary of Contents for COLDFUSION 5-DEVELOPING
Page 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Page 58: ...38 Chapter 3 Querying a Database ...
Page 134: ...114 Chapter 7 Updating Your Database ...
Page 210: ...190 Chapter 10 Reusing Code ...
Page 232: ...212 Chapter 11 Preventing and Handling Errors ...
Page 238: ...218 Chapter 12 Using the Application Framework ...
Page 262: ...242 Chapter 12 Using the Application Framework ...
Page 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Page 320: ...300 Chapter 15 Indexing and Searching Data ...
Page 336: ...316 Chapter 16 Sending and Receiving E mail ...
Page 374: ...354 Chapter 18 Interacting with Remote Servers ...