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

Chapter 26. Error Handling > <cferror> and <cftry> Together

<cferror> and <cftry> Together

If you use a <cftry>/<cfcatch> block to catch an exception, the <cferror> tag does not do its job and fails to redirect processing to the error template. The <cftry>/<cfcatch> block makes it seem that an exception did not occur. In essence, the <cftry> ”overrides” the <cferror>.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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