Exception: Mongoid::Errors::NoEncryptionSchema
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
MongoidError,
StandardError
|
|
|
Instance Chain:
self,
MongoidError,
StandardError
|
|
| Inherits: |
Mongoid::Errors::MongoidError
|
| Defined in: | lib/mongoid/errors/no_encryption_schema.rb |
Overview
This error is raised when a model declares encrypted fields, but the namespace it is about to be persisted to is not covered by the automatic encryption schema of the client in use. Without a schema the driver has nothing to encrypt with, and the fields would be stored in plaintext.
Constant Summary
MongoidError - Inherited
Class Method Summary
-
.new(klass, namespace, client) ⇒ NoEncryptionSchema
constructor
Create the new error.
Instance Attribute Summary
MongoidError - Inherited
Instance Method Summary
MongoidError - Inherited
| #compose_message | Compose the message. |
| #translate | Given the key of the specific error and the options hash, translate the message. |
| #translate_problem | Create the problem. |
| #translate_resolution | Create the resolution. |
| #translate_summary | Create the summary. |
Constructor Details
.new(klass, namespace, client) ⇒ NoEncryptionSchema
Create the new error.