ColdFusion has a rich environment to catch syntax errors and exceptions that occur when a template is being parsed or processed. <cferror> with the type attribute set equal to Request or Validation redirects processing to a template where you cannot use other ColdFusion tags. If the type is set to Exception, processing is redirected to a template where you can use ColdFusion tags. Rather than redirect processing to an error template, you might want to catch the error and deal with it programmatically. You can do so by using the <cftry>/ <cfcatch> tag set. Sample Questions
|