Sha256: e8aad08ee4588e5d4445c7043a861dfb9bc5748ed76ca4af09fcf4b7b35d859b

Contents?: true

Size: 577 Bytes

Versions: 6

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true
# rubocop:todo all

module BSON
  class Error

    # Raised when trying to create a Decimal128 from a string with
    #   an invalid format.
    class InvalidDecimal128String < Error

      # The custom error message for this error.
      MESSAGE = 'Invalid string format for creating a Decimal128 object.'

      # 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_string.rb
bson-5.0.2-java lib/bson/error/invalid_decimal128_string.rb
bson-5.0.1 lib/bson/error/invalid_decimal128_string.rb
bson-5.0.1-java lib/bson/error/invalid_decimal128_string.rb
bson-5.0.0-java lib/bson/error/invalid_decimal128_string.rb
bson-5.0.0 lib/bson/error/invalid_decimal128_string.rb