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.


> > Hm. So if someone was stringent on how they use CFTHROW (if they use it at
all),
> > then it would do the same. Personally, I don't throw errors. I write code to
> > deal with specific error events. I just like to be specific about error
> > handling.
>
> Um, isn't cfthrow dealing with events?  If someone calls method foo(),
> and foo expects one argument, a number, greater than zero, shouldn't
> you throw an error if they pass in -1? Sure your client code should
> stop it, but if you distribute your CFC you don't always have control
> over the client.
>
> -Ray
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:138705
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