If you think about it, this is really what you would expect.  Take the
following example ...

You have a security guard 'object'
If you tell him to 'getKeys', he should return to you a set of keys
If you tell him to 'checkSecurity', he should return nothing - i.e. void
   the fact that the building is secure is expected
   if something is wrong, he should throw an exception as it is an exception
to the 'norm'

I don't know if there is anything magic to this reasoning, it was just the
way it was explained to me at one point and it made sense.

-- Jeff


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Dawson, Michael
Sent: Thursday, March 10, 2005 11:33 AM
To: [email protected]
Subject: Method Question (was RE: [CFCDev] OO Security?)

Roland, this is a bit off-topic, but in your checkUserPubAccess() and
checkUserRights() methods, you set them to return VOID.

When you call these methods, do you assume that if they don't throw an error
that everything is OK and you can proceed?  I guess you would have to.

BTW, this is a great document!  I appreciate you sharing it with us.

Thanks
M!ke

----------------------------------------------------------
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).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]




----------------------------------------------------------
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).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]

Reply via email to