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

Incorrect error message from ObjectId.Unpack()

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.8
    • Affects Version/s: 1.7.1
    • Component/s: None
    • None
    • Environment:
      Windows

      The new ArgumentOutOfRangeException() is incorrectly formed. It's passing a message as the parameter name. It should read;

      throw new ArgumentOutOfRangeException("bytes", "Byte array must be 12 bytes long.");

      Ideally though, it would have a bit more information relating to ObjectId.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            daniel.sinclair@nupe.com Daniel Sinclair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: