Exception: Qiniu::S3::InvalidArgsError

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(invalid_keys) ⇒ InvalidArgsError

Returns a new instance of InvalidArgsError.



69
70
71
72
# File 'lib/qiniu/s3/exceptions.rb', line 69

def initialize(invalid_keys)
  key_list = invalid_keys.map {|key| key.to_s}.join(' and the ')
  super("#{key_list} should not be empty.")
end