Chapter 14: Handling Errors - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

CHAPTER 14
Handling Errors
ColdFusion includes many tools and techniques for responding to errors that your application
encounters. These tools include error handling mechanisms and error logging tools. This chapter
describes these tools and how to use them.
This chapter does not discuss techniques for preventing errors, including methods for specifying
user input validation. It also does not discuss code debugging. For information on user input
validation, see
Chapter 26, "Retrieving and Formatting Data," on page 559
and
Chapter 27,
"Building Dynamic Forms," on page
583. For information on debugging, see
Chapter 18,
"Debugging and Troubleshooting Applications," on page
389.
Contents
About error handling in ColdFusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
Understanding errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
Error messages and the standard error format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
Determining error-handling strategies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
Specifying custom error messages with cferror . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
Logging errors with the cflog tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
Handling runtime exceptions with ColdFusion tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
285

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents