Exception: Aliyun::ESS::MissingAccessKey
- Inherits:
-
InvalidOption
- Object
- StandardError
- Exception
- InvalidOption
- Aliyun::ESS::MissingAccessKey
- Defined in:
- lib/aliyun/ess/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
-
#initialize(missing_keys) ⇒ MissingAccessKey
constructor
A new instance of MissingAccessKey.
Constructor Details
#initialize(missing_keys) ⇒ MissingAccessKey
Returns a new instance of MissingAccessKey.
54 55 56 57 |
# File 'lib/aliyun/ess/exceptions.rb', line 54 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 |