• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. CFScript > Handling Exceptions

Handling Exceptions

No matter how great a coder you are, you cannot foresee all the things that might happen when your code or application is actually used in production. For this reason, almost every programming language or scripting language has some method of exception handling to enable developers to create robust applications that gracefully handle unforeseen events or that provide useful and often critical debugging information so that you can find the source of the actual problem and resolve it.

At this point, you are familiar with CFML exception handling, but CFScript also has its own exception handling with its analogues to the CFTRY and CFATCH tags. CFScript provides you the try, catch, and finally script statements, and when you develop your CFScript blocks (especially when creating UDFs), you should use them liberally!


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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