public override void OnException(ExceptionContext context) { if (!context.IsNull() && !context.Exception.IsNull()) { Debug.WriteLine($"Error: {context.Exception.Message}"); } context.Result = CreateExceptionResponse(); }