Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-4082

Include stack trace when unexpected exception thrown displaying MongoQuery

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.15.0
    • Affects Version/s: 2.14.1
    • Component/s: LINQ3
    • Labels:
      None
    • Minor Change

      If an exception is thrown calling MongoQuery.ToString(), only the error message is displayed, not the stack trace. If the exception is expected - like ExpressionNotSupportedException - then only displaying the message is the correct behaviour. But if some unexpected problem occurs - such as not being able to resolve the correct serializer - a full stack trace would be helpful in diagnosing the issue.

            Assignee:
            james.kovacs@mongodb.com James Kovacs
            Reporter:
            james.kovacs@mongodb.com James Kovacs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: