Handling Errors

Macromedia ColdFusion MX 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 Introduction to Retrieving and Formatting Data and Building Dynamic Forms with cfform Tags. For information on debugging, see Debugging and Troubleshooting Applications.

Contents

About error handling in ColdFusion

Understanding errors

Error messages and the standard error format

Determining error-handling strategies

Specifying custom error messages with the cferror tag

Logging errors with the cflog tag

Handling runtime exceptions with ColdFusion tags