I also use a custom throw in my cfc. This allows me to set ONE type for
the entire CFC and just do this in various methods,
<cfset throw("You screwed up you dog-faced idiot!")>
========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
Email : [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Justin Balog
> Sent: Wednesday, July 09, 2003 1:30 PM
> To: '[EMAIL PROTECTED]'
> Subject: FW: [CFCDev] Error Handling Best Practices -
> response to RE: [CFC Dev] Error Handling Strategies
>
>
> Howdy,
>
> Concerning Error handling, Sean C. sent this reply to my
> question (his email follows below these code samples of
> mine), and I have run with it. I do wrap the the methods of
> the cfcs, and the facade cfcs to catch errors, but on error I
> call a private method in the cfc "throw()" which handles the
> exception by calling various other cfcs to log it, notify
> someone, retry, whatever? There is probably a better way to
> do it, but this is how I am currently handling it.
>
> Excerpt from a cfc called by the facade cfc:
>
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).