ColdFusion 9.0 Resources |
Using cftry and cfcatch tagsThe cftry tag lets you go beyond reporting error data to the user:
For example, you can use cftry to catch errors in code that enters data from a user registration form to a database. The cfcatch code could do the following:
Code that accesses external resources such as databases, files, or LDAP servers where resource availability is not guaranteed is a good candidate for using try/catch blocks. |