Summary


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

1:

Which of the following <cferror> types is used to check form input?

  1. Form

  2. Validation

  3. Exception

  4. Error

2:

<cfthrow> is used with no type attribute. What type of exception should you use to catch it?

  1. Expression

  2. Any

  3. Database

  4. Application

3:

Which error-handling options are available in CFML but not <cfscript>?

  1. try

  2. catch

  3. tHRow

  4. rethrow



Macromedia ColdFusion MX 7 Certified Developer Study Guide
Macromedia ColdFusion MX 7 Certified Developer Study Guide
ISBN: 0321330110
EAN: 2147483647
Year: 2004
Pages: 389
Authors: Ben Forta

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net