Ok, so let's ignore how I write a throw() method and just focus on
exceptions in general. Considering the business rule of:

Argument X must be numeric and greater than 0.

You can't use <cfargument> alone to validate this. To me, it makes
sense to use cfthrow when the number is < 0. How would you handle it
though?

-r

On Fri, 3 Dec 2004 13:05:26 -0500, Michael Dinowitz
<[EMAIL PROTECTED]> wrote:
> Right, and I don't throw events.
> In your example, I'd expect the cfargument tag to handle the error passed and 
> if
> it doesn't, then a CFIF to handle if its LTE 0. I can see where your take 
> would
> make sense but it's not something I've done in the past nor needed to do. I'll
> keep it in mind though in case something does come up.
> Still worth a small techniques article or blog post.
> 
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:138706
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to