Sha256: 53b6a35380797b1faf457c2e29e672bd67fc962baf272c8a2ea258d7b72cecaf

Contents?: true

Size: 563 Bytes

Versions: 6

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true
# rubocop:todo all

module BSON
  class Error

    # Raised when the exponent is outside the valid range.
    class InvalidDecimal128Range < Error

      # The custom error message for this error.
      #
      # @deprecated
      MESSAGE = 'Value out of range for Decimal128 representation.'

      # Get the custom error message for the exception.
      #
      # @example Get the message.
      #   error.message
      #
      # @return [ String ] The error message.
      def message
        MESSAGE
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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