mongodb/bson-ruby

View on GitHub
lib/bson/error/invalid_decimal128_range.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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