However, that being said, I use Ray's approach. I wrap my CFC calls (cfinvoke, etc.) in cftry/cfcatch statements and try and keep them out of the actual CFC code itself.
Regards, Dave.
From: "Raymond Camden" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Subject: RE: [CFCDev] qualifying data coming in to cfc Date: Tue, 16 Sep 2003 09:53:52 -0500
Yes. For example, I have a register method of my User CFC that allows me to register a new user. It will throw an error if the user already exists. For security reasons, I don't expose my userExists method. So I just wrap the call to register w/ try catch.
<!--- Attempt to register ---> <cftry> <cfinvoke component="cflib.cfcs.user" method="register"> <cfinvokeargument name="username" value="#form.emailAddy#"> <cfinvokeargument name="password" value="#form.password#"> </cfinvoke> <cfcatch> <cfset errorMsg = cfcatch.message> </cfcatch> </cftry>
======================================================================= Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc Member of Team Macromedia
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 Tony Weeg Sent: Tuesday, September 16, 2003 8:49 AM To: [EMAIL PROTECTED] Subject: RE: [CFCDev] qualifying data coming in to cfc
now do you wrap your in-cfc cfml code in cftry/cfcatch block to further prevent and trap errors?
tony weeg
_________________________________________________________________
Use custom emotions -- try MSN Messenger 6.0! http://www.msnmessenger-download.com/tracking/reach_emoticon
----------------------------------------------------------
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).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
