Sha256: 279a353a1db0c1cc64ac45250e551907d3479881b64a930b1e9e7dcba9027f6e
Contents?: true
Size: 657 Bytes
Versions: 27
Compression:
Stored size: 657 Bytes
Contents
# frozen_string_literal: true module Mongoid module Errors # Raised when an invalid index is defined. class InvalidIndex < MongoidError # Create the new error. # # @example Create the error. # InvalidIndex.new(Band, name: 1) # # @param [ Class ] klass The model class. # @param [ Hash ] spec The invalid specification. # @param [ Hash ] options The invalid options. def initialize(klass, spec, options) super( compose_message( "invalid_index", { klass: klass.name, spec: spec, options: options } ) ) end end end end
Version data entries
27 entries across 27 versions & 1 rubygems