Class Mongo::Auth::Unauthorized
In: lib/mongo/auth.rb
Parent: RuntimeError

Raised when a user is not authorized on a database.

@since 2.0.0

Methods

new  

Public Class methods

Instantiate the new error.

@example Instantiate the error.

  Mongo::Auth::Unauthorized.new(user)

@param [ Mongo::Auth::User ] user The unauthorized user. @param [ String ] used_mechanism Auth mechanism actually used for

  authentication. This is a full string like SCRAM-SHA-256.

@since 2.0.0

[Validate]