Exception: Mongo::Auth::Unauthorized
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Mongo::Auth::Unauthorized
- Defined in:
- lib/mongo/auth.rb
Overview
Raised when a user is not authorized on a database.
Instance Method Summary collapse
-
#initialize(user) ⇒ Unauthorized
constructor
Instantiate the new error.
Constructor Details
#initialize(user) ⇒ Unauthorized
Instantiate the new error.
102 103 104 |
# File 'lib/mongo/auth.rb', line 102 def initialize(user) super("User #{user.name} is not authorized to access #{user.database}.") end |