123456789_123456789_123456789_123456789_123456789_

Exception: Mongo::Error::AuthError

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, RuntimeError
Instance Chain:
self, Notable, RuntimeError
Inherits: RuntimeError
  • Object
Defined in: lib/mongo/error/auth_error.rb

Overview

Raised when authentication fails.

Note: This class is derived from RuntimeError for backwards compatibility reasons. It is subject to change in future major versions of the driver.

Since:

  • 2.11.0

Instance Attribute Summary

Notable - Included

#connection_global_id

Returns global id of the connection on which the error occurred.

#generation

Returns connection pool generation for the connection on which the error occurred.

#service_id

Returns service id for the connection on which the error occurred.

Instance Method Summary

Notable - Included

#add_note,
#add_notes

Allows multiple notes to be added in a single call, for convenience.

#notes

Returns an array of strings with additional information about the exception.

#to_s, #notes_tail