I concur.

Based on Dave and others advice on this list, I converted my application to
use throws and catches to catch all User errors and throws and cferror to
catch application and database errors.

Using this technique significantly reduced my code and improved the
readability of the remaining code.

Andy
  -----Original Message-----
  From: Deanna Schneider [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, December 23, 2003 6:57 AM
  To: CF-Talk
  Subject: Re: Error Handling

  Dave Watts wrote:
  > You can specify custom exception types, in which case you can catch them
  > with custom exception handlers. I haven't tried this with the CFERROR tag
  > specifically, but according to the documentation you can specify custom
  > exception types for the CFERROR tag when using TYPE="EXCEPTION".
  >

  I've just recently tried this, throwing a custom error of type "LDAP" and
  providing a custom template to handle LDAP-specific errors. Works great!

  -Deanna
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to