Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2118

Exception class names do not match file names

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.12.0.rc0
    • Component/s: Encryption
    • Labels:

      Description

      There are several classes under Mongo::Error whose file names do not match the class names:

      https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/error/failed_stringprep_validation.rb - FailedStringPrepValidation

      https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/error/kms.rb - KmsError

      https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/error/crypt.rb - CryptError

      File names should be the class names converted to underscore style, i.e. failed_string_prep_validation.rb, kms_error.rb and crypt_error.rb.

      This ticket covers auditing all other files under error directory to ensure all file names match the class names that they define.

        Attachments

          Activity

            People

            Assignee:
            emily.giurleo Emily Giurleo
            Reporter:
            oleg.pudeyev Oleg Pudeyev
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: