hehe i knew someone would say that. probably some unix guy no doubt.. hehe ;)



-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 November 2004 12:41 p.m.
To: [EMAIL PROTECTED]
Subject: Re: DAO Semantics WAS: RE: [CFCDev] table DAO


No.  If you need to do that, you use an exception, you don't return anything.

The way I think about is like this:  Assume everything will be
perfect.  Implement the method.  Identify things that can go wrong. 
Add CFTRY..CFCATCH and/or CFTHROW to make the method throw relevant
exceptions for those problem situations.

The implementation doesn't change in any way because of the error
checking, I guess is the main point.

cheers,
barneyb

On Tue, 16 Nov 2004 12:19:23 +1300, Tim Van Der Hulst
<[EMAIL PROTECTED]> wrote:
> > DAOs typically return nothing
> (if they update an object that is passed in) or they may return a
> populated object (e.g., for create()).
> 
> not to be picky but should'nt you be returning a structure containing the 
> status of the operation (eg boolean to indicate success/failure) and or 
> errror information (ie like an exception class).
> 
> hehe sorry Sean just being a pain.
> 
> TiM
> 
-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/blog/

I currently have 0 GMail invites for the taking
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words '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 
[EMAIL PROTECTED]
##
##
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words '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 
[EMAIL PROTECTED]

Reply via email to