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

Name

cfthrow

Synopsis

<cfthrow>

Creates a custom exception type that can be caught by the cftry/cfcatch tags when the type attribute of the cfcatch tag is set to Application, Any, or the custom type you specify in the cfthrow tag.

You can name custom exception types in a hierarchical manner so that you can reference groups of custom exception types with a single cfcatch tag. Consider the following cfthrow tag:

<cfthrow type="MyApp.RequiredParameters.MyVar">

Any of the three following cfcatch tags can be used to catch the exception:

<cfcatch type="MyApp.RequiredParameters.MyVar ">
<cfcatch type="MyApp.RequiredParameters">
<cfcatch type="MyApp">

Attributes

detail=" event_description

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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