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

Split excessive precision exception from out of range exception in Decimal128

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • bson-4.14.0
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: