Exception: Mongo::Auth::Aws::CredentialsNotFound Private
- Inherits:
-
Error::AuthError
- Object
- RuntimeError
- Error::AuthError
- Mongo::Auth::Aws::CredentialsNotFound
- 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
Instance Attribute Summary
Attributes included from Error::Notable
#connection_global_id, #generation, #service_id
Instance Method Summary collapse
-
#initialize ⇒ CredentialsNotFound
constructor
private
A new instance of CredentialsNotFound.
Methods included from Error::Notable
#add_note, #add_notes, #notes, #to_s
Constructor Details
#initialize ⇒ CredentialsNotFound
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.
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 |