Really small change request in your infrastructure.

in Controller.Core.cs there is a function HandleException.

protected virtual void HandleException(Exception ex, ActionArgs args, ActionResult result)
while (ex != null)
ex = ex.InnerException;

The problem with this function that it is hiding the entire exception in it. and I get no stack in the logs. or when I debug, I cant tell what was the problem.
is there any chance to change it so I can get the entire exception and not just the message.
the change might be:


Can you tell me if you are going to do that and when?

1 person likes
this idea
  • You can extend the functionality of the method yourself. Create a class file in your project and replace the contents with the following: 

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;

    namespace MyCompany.Data
    public partial class Controller
    protected override void HandleException(Exception ex, ActionArgs args, ActionResult result)
    // capture the exception
    base.HandleException(ex, args, result);
  • (some HTML allowed)
    How does this make you feel?
    Add Image

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated