Chapter 44 Error Handling

IN THIS CHAPTER

Catching Errors as They Occur E47

What Is an Exception? E47

Introducing <cftry> and <cfcatch> E48

Basic Exception Handling E49

Understanding What Caused the Error E53

Writing Templates That Work Around Errors E56

Writing Templates That Recover from Errors E59

Deciding Not to Handle an Exception E64

Throwing and Catching Your Own Errors E68

Handling Exceptions with Scripting E70

Catching Errors as They Occur

Unless you are a really, really amazing developer—and an incredibly fast learner—you have seen quite a few error messages from ColdFusion, both during development and after deployment of your applications. ColdFusion is generally very good about providing diagnostic messages that help you understand ...

Get Adobe ColdFusion 9 Web Application Construction Kit, Volume 2: Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.