class Mongo::Error::MissingPassword
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.
@since 2.8.0
Public Class Methods
new(msg = nil)
click to toggle source
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/missing_password.rb, line 24 def initialize(msg = nil) super(msg || 'User was created without a password') end