Class: Mongo::Error::MissingPassword
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Error
|
|
|
Instance Chain:
self,
Error
|
|
| Inherits: |
Error
|
| Defined in: | lib/mongo/error/missing_password.rb |
Overview
Raised when the operations that require a password (e.g. retrieving a salted or hashed password) are attempted on a User object that was not created with a password.
Class Method Summary
- .new(msg = nil) ⇒ MissingPassword constructor
Constructor Details
.new(msg = nil) ⇒ MissingPassword
# File 'lib/mongo/error/missing_password.rb', line 25
def initialize(msg = nil) super(msg || 'User was created without a password') end