I have the following three Rescue attributes defined on my controller

    [Rescue("error")]
    [Rescue("controller", typeof(ControllerException))]
    [Rescue("security", typeof(SecurityException))]

Inside one of my actions, I have placed one of the three types of
exceptions, but the SecurityException is never capture and I get an
ASP.NET error page instead of the view I defined in my views/rescues.
Exception and ControllerException work as advertised.  I have tried
several combinations of the attributes and types, but no matter what I
do, a SecurityException is never handled properly.

        public void Index()
        {
//            throw new Exception("This is a test of an Exception");
//            throw new ControllerException("This is a test of a
controller exception");
            throw new SecurityException("This is a test of a security
exception");
        }


All I want to do is display different help information when I security
exception is thrown, i.e. where to request access, only on
SecurityException.  The other types of exceptions should show the
error and possible support email address.

Thanks,
Jason
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to