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

Remove all occurences of FileFormatException

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.0
    • None
    • Serialization
    • None
    • Minor Change

    Description

      For accidental historical reasons we sometimes throw a FileFormatException when what we really meant to throw was usually a FormatException.

      As a first step in removing all uses of FileFormatException we will simply replace all occurences with FormatException.

      Later on we plan to study more carefully what exceptions can be thrown during serialization/deserialization and may make further changes. When that happens we will link this ticket to that one.

      This is a backward breaking change. If you were catching FileFormatExceptions you will no longer be catching the new FormatExceptions.

      However, because FileFormatException derives from FormatException, if you were catching FormatExceptions you will not have to change your code.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: