Exception: JPush::Utils::Exceptions::MissingArgumentError
- Inherits:
-
JPushArgumentError
- Object
- StandardError
- JPushError
- JPushArgumentError
- JPush::Utils::Exceptions::MissingArgumentError
- Defined in:
- lib/jpush/utils/exceptions.rb
Instance Attribute Summary
Attributes inherited from JPushError
Instance Method Summary collapse
-
#initialize(missed_args) ⇒ MissingArgumentError
constructor
A new instance of MissingArgumentError.
Constructor Details
#initialize(missed_args) ⇒ MissingArgumentError
Returns a new instance of MissingArgumentError.
19 20 21 22 23 |
# File 'lib/jpush/utils/exceptions.rb', line 19 def initialize(missed_args) list = missed_args.map {|arg| arg.to_s} * (', ') msg = "#{list} are required." super(msg) end |