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

Provide usable error messages.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      MongoDB.Bson.Serialization.BsonClassMapSerializer.Deserialize: generates messages like this: Unexpected element "

      {0}".

      What class are we deserializing? Was it unexpected on the class, or in the bson and not in the class (was it renamed by an attribute, but has a field – was it saved from an old version of the class)? What collection did this come from? What is the _id of this document?

      There are other error messages in the same file like, "Anonymous class cannot be deserialized.","Value class {0}

      cannot be deserialized.", "Required element '

      {0}

      ' is missing.", of the same type.

      Please provide some context for the error so that users can find their problems, and fix them.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: