Sha256: 00486bc467d6fb62868585993c69e22332a0a7df542c420361b30ddd096f27a2

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true
# rubocop:todo all

module BSON
  class Error

    # Raised when the significand provided is outside the valid range.
    class UnrepresentablePrecision < Error

      # Get the custom error message for the exception.
      #
      # @return [ String ] The error message.
      def message
        'The value contains too much precision for Decimal128 representation'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bson-5.0.2 lib/bson/error/unrepresentable_precision.rb
bson-5.0.2-java lib/bson/error/unrepresentable_precision.rb
bson-5.0.1 lib/bson/error/unrepresentable_precision.rb
bson-5.0.1-java lib/bson/error/unrepresentable_precision.rb
bson-5.0.0-java lib/bson/error/unrepresentable_precision.rb
bson-5.0.0 lib/bson/error/unrepresentable_precision.rb