Exception: Mongoid::Errors::InvalidAutoEncryptionConfiguration
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidAutoEncryptionConfiguration
- Defined in:
- lib/mongoid/errors/invalid_auto_encryption_configuration.rb
Overview
This error is raised when automatic encryption configuration for a client is invalid.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(name, kms_provider = nil) ⇒ InvalidAutoEncryptionConfiguration
constructor
Initialize the error.
Methods inherited from MongoidError
Constructor Details
#initialize(name, kms_provider = nil) ⇒ InvalidAutoEncryptionConfiguration
Initialize the error.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/mongoid/errors/invalid_auto_encryption_configuration.rb', line 14 def initialize(name, kms_provider = nil) if kms_provider super( ( "invalid_auto_encryption_configuration_for_kms_provider", { client: name, kms_provider: kms_provider } ) ) else super( ( "invalid_auto_encryption_configuration", { client: name } ) ) end end |