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

Chapter 26. Error Handling > <cferror> and Exceptions

<cferror> and Exceptions

Earlier in the chapter, you learned about <cferror> with the type attribute equal to Request and Validation. Now that you've learned about exceptions, you can extend the use of <cferror>.

<cferror type="exception">

The <cferror> tag directs program execution to a designated error template when the type is Request or Validation. The information from the error template is displayed, and program processing ends. The same is true when the type is Exception, except that on the error template, you have access to the full set of ColdFusion tags, as well as the <cferror> variables as needed.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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