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]
- RE: Error handling Pascal Peters
- Error Handling Eric J Hoffman
- Re: Error Handling David Schmidt
- Re: Error Handling Don Vawter
- Error Handling Kevin Marino
- Re: Error Handling peter . tilbrook
- RE: Error Handling Raymond Camden
- Re: Error Handling peter . tilbrook
- RE: Error Handling Dave Watts
- Re: Error Handling Deanna Schneider
- Strange Permission Errors Andy Ousterhout
- Strange Permission Errors C. Hatton Humphrey
- RE: Error Handling Kevin Marino
- Re: Error Handling Deanna Schneider
- RE: Error Handling Kevin Marino
- Error Handling Lee
- Re: Error Handling Joe Rinehart
- RE: Error Handling Andy Ousterhout
- Re: Error Handling Joe Rinehart
- RE: Error Handling Andy Ousterhout
- Re: Error Handling Mike Chabot