Exception: AWS::S3::MissingAccessKey

Inherits:
InvalidOption show all
Defined in:
lib/aws/s3/exceptions.rb

Overview

Raised if either the access key id or secret access key arguments are missing when establishing a connection.

Instance Method Summary collapse

Constructor Details

#initialize(missing_keys) ⇒ MissingAccessKey

Returns a new instance of MissingAccessKey.



47
48
49
50
# File 'lib/aws/s3/exceptions.rb', line 47

def initialize(missing_keys)
  key_list = missing_keys.map {|key| key.to_s}.join(' and the ')
  super("You did not provide both required access keys. Please provide the #{key_list}.")
end