Exception: Aliyun::OSS::MissingAccessKey

Inherits:
InvalidOption show all
Defined in:
lib/aliyun/oss/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.



48
49
50
51
# File 'lib/aliyun/oss/exceptions.rb', line 48

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