Exception: Qiniu::MissingArgsError
- Defined in:
- lib/qiniu/exceptions.rb
Direct Known Subclasses
MissingAccessToken, MissingRefreshToken, MissingUsernameOrPassword
Instance Method Summary collapse
-
#initialize(missing_keys) ⇒ MissingArgsError
constructor
A new instance of MissingArgsError.
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 |