Exception: Mongo::Auth::Aws::CredentialsNotFound Private

Inherits:
Error::AuthError show all
Defined in:
lib/mongo/auth/aws/credentials_retriever.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Raised when trying to authorize with an invalid configuration

Since:

  • 2.0.0

Instance Attribute Summary

Attributes included from Error::Notable

#connection_global_id, #generation, #service_id

Instance Method Summary collapse

Methods included from Error::Notable

#add_note, #add_notes, #notes, #to_s

Constructor Details

#initializeCredentialsNotFound

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CredentialsNotFound.

Since:

  • 2.0.0



25
26
27
# File 'lib/mongo/auth/aws/credentials_retriever.rb', line 25

def initialize
  super("Could not locate AWS credentials (checked Client URI and Ruby options, environment variables, ECS and EC2 metadata, and Web Identity)")
end