• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Handling Errors

ColdFusion offers numerous features for handling any errors that occur when processing a page request, including the CFERROR tag, the CFTRY tag, the CFCATCH tag, and the CFTHROW tag. You actually used a simple form of error handling in the last section. Because error handling is simply evaluating a condition and executing code based on the evaluation, changing colors based on the outcome of data validation is one way of handling user input errors.

Dreamweaver provides Show Region server behaviors that, as the name implies, show a region based on a condition. Dreamweaver includes Show Region server behaviors that evaluate recordsets returned by database queries. For example, the Show Region If Recordset Is Not Empty server behavior shows whatever it is applied to only if the designated recordset contains records.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint