Barney, If you don't mind I would like an example to clarify, in this example I am checking to see if a user exists, it returns the user object if it does. So when it returns back to the caller how do I handle it, if you can give me an example to help clarify what your saying that would be much appreciated.
Regards, Andrew Scott Quote of the Day: Newspaper editor: We're looking for a new food critic, someone who doesn't immediately pooh-pooh everything he eats. Homer Simpson: Nah, it usually takes a few hours. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barney Boisvert Sent: Sunday, 23 October 2005 2:59 PM To: [email protected] Subject: Re: [CFCDev] CFC return types In some scenarios, you're better off raising an exception than returning "null", but it doesn't work in all situations. Where you can't do it, you have to declare returntype="any", as you've discovered. For example a getSpouse() method of Person CFC should raise a UnmarriedException when called on an unmarried person, rather than returning null. cheers, barneyb ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
