Exception: Mongoid::Errors::InvalidDiscriminatorKeyTarget Private
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidDiscriminatorKeyTarget
- Defined in:
- lib/mongoid/errors/invalid_discriminator_key_target.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Creates the exception raised when trying to set or get the discriminator key on a child class.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(class_name, superclass) ⇒ InvalidDiscriminatorKeyTarget
constructor
private
A new instance of InvalidDiscriminatorKeyTarget.
Methods inherited from MongoidError
Constructor Details
#initialize(class_name, superclass) ⇒ InvalidDiscriminatorKeyTarget
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of InvalidDiscriminatorKeyTarget.
15 16 17 18 19 20 21 22 |
# File 'lib/mongoid/errors/invalid_discriminator_key_target.rb', line 15 def initialize(class_name, superclass) super( ( "invalid_discriminator_key_target", { class_name: class_name, superclass: superclass } ) ) end |