To answer my own question...
My difficulty was that my RescueController inherited from Controller,
but it should have inherited from SmartDispatcherController in order
to populate the arguments that are defined on Rescue method on the
IRescueController interface.
My controller now looks like
public class RescueController : SmartDispatcherController,
IRescueController
{
public void Rescue(Exception exception, IController
controller, IControllerContext controllerContext) {...}
}
Maybe this was blatantly obvious to everyone else, but it wasn't to
me.
Jason
On Sep 10, 7:40 pm, jsmorris <[EMAIL PROTECTED]> wrote:
> My Controller
>
> [ControllerDetails(Area = "admin")]
> [Rescue(typeof(RescueController))]
> public class FeedController : TraXController {...}
>
> My custom rescue controller
>
> [Layout("default")]
> [Filter(ExecuteWhen.BeforeAction, typeof(AddTitleFilter))]
> public class RescueController : Controller, IRescueController
> {
> public void Index() {...}
> public void Rescue(Exception exception, IController
> controller, IControllerContext controllerContext) {...}
> }
>
> Now, if I manually throw an error in one of my actions inside my
> FeedController, all I get is the ASP.NET error page. I never hit my
> breakpoint that I have set inside my RescueController.Rescue() method.
>
> So, if I go back to marking my controller
>
> [ControllerDetails(Area = "admin")]
> [Rescue("error")]
> public class FeedController : TraXController {...}
>
> It all works great. I see my rescues/error.brail view.
>
> Anyone see anything obvious that I might not be doing or know of
> something I should be doing and I am not?
>
> I am creating a custom rescue controller in order to log and email
> error messages as the users sees them.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---