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

Split excessive precision exception from out of range exception in Decimal128

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Unknown
    • Resolution: Fixed
    • None
    • bson-4.14.0
    • BSON
    • None
    • Fully Compatible

    Description

      Currently Decimal128 raises InvalidRange for two distinct conditions: the value given to Decimal128 is out of range, and the value contains too much precision. The second situation should utilize its own exception class (which will be derived from InvalidRange for now for backwards compatibility) so that the situation is clearly communicated to the users.

      Attachments

        Activity

          People

            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: