My personal preference is to not throw an error. I simply don't include items that don't pass security clearance.
I've got to write this plugin up and send it out. Sandy -----Original Message----- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 5:16 PM To: Fusebox Subject: FB 4 & Security Plugin For the last couple days I have been trying to figure out the most elegant way to handle working with the Security plugin in FB4. When a user tries to execute a fuseaction for which they do not have permission, the security plugin throws an exception "SecurityType". What is the best way to inform the user given the fact that my application is in MVC Fusebox and makes heavy use of CCVs to hold output. Should I: 1.) Use a redirect in the plugin itself to a circuit setup to handle errors? 2.) Let the error bubble up to a more global error handler and then do #1? 3.) Catch the exception (where?) and somehow package a message into a CCV for output (where?)? Up until now, I have just used a redirect (VERY KLUDGY) to an errorHandler circuit but there has to be a more graceful way. Remember I am MVC Fusebox and CCV :-) Thoughts? I need to get on that article I have been meaning to write for CFDJ on error/excpetion handling in FB. Ok peoples, hit me with your advice! Mike T. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Stay Ahead of Hackers - Download ZoneAlarm Pro http://www.houseoffusion.com/banners/view.cfm?bannerid=65 Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6654 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
