is used to trap error conditions, and are used to programmatically respond to error conditions. Is there ever a need for both at once? Actually, there is. is a special form of error template that is called before / handling is invoked. This allows you to implement centralized logging or debugging before returning control to the specific error handler. (Applies to: ColdFusion 4.5 (or later))
Related
Why can’t I do something this simple….
<cfoutput query="qryWithData">
<cftry>
<cfquery name="addrecords" datasource="MyDSN">
Insert into tblVerity (listing_number, address, type, listing_price, beds, baths, districtAreaSchool)
VALUES (#qryWithData.listing_number#, ‘#qryWithData.address#’, ‘#qryWithData.type#’, #qryWithData.listing_price#, #qryWithData.beds#, #qryWithData.baths#, ‘#qryWithData.districtAreaSchool#’)
</cfquery>
<cfcatch>
<p>#error.diagnostics#</p>
</cfcatch>
</cftry>
</cfoutput>