Exception: Qiniu::S3::MissingArgsError

Inherits:
Exception
  • Object
show all
Defined in:
lib/qiniu/s3/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

#to_s

Constructor Details

#initialize(missing_keys) ⇒ MissingArgsError

Returns a new instance of MissingArgsError.



44
45
46
47
# File 'lib/qiniu/s3/exceptions.rb', line 44

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