How do I create an exception-wrapping fubumvc behaviour?
- by Jon M
How can I create a fubumvc behaviour that wraps actions with a particular return type, and if an exception occurs while executing the action, then the behaviour logs the exception and populates some fields on the return object? I have tried the following:
public class JsonExceptionHandlingBehaviour : IActionBehavior
{
private static readonly…