On Wednesday 16 Jul 2003 16:07 pm, Bryan F. Hogan wrote: > Ok with that, should when an error is thrown by the CFC, throw out to CF > via cfthrow or should it contain it's own exception handling and return > error values to the developer who is using the CFC?
I throw an exception. The developer will not be 'using' the CFC, the users of the website, and it is important for us that we get notififed it it has failed in someway, and our exception handerling code (ultimaly boils up to a cferror page that emails us) handles this - in dev. enviroment too. > For an example when a user does not follow directions on how to use the CFC > properly by passing it the correct arguments. Then the developer (I assume when you said 'user', you meant a developer) deserves what they get. The code should make sure the user of the wewb site can not enter invalid data (string into numeric field). If the user bypasses this, then I think it is OK for the CFC to throw an exception. -- Thomas C Advanced ColdFusion Programmer HANDLE WITH EXTREME CARE: This Email Contains Minute Electrically Charged Particles Moving at Velocities in Excess of Five Hundred Million Miles Per Hour. PLEASE ALSO NOTE: I don't speak for the company that sent this. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
