Exception: Qiniu::MissingArgsError

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

Instance Method Summary collapse

Constructor Details

#initialize(missing_keys) ⇒ MissingArgsError

Returns a new instance of MissingArgsError.



77
78
79
80
# File 'lib/qiniu/exceptions.rb', line 77

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