Exception: JPush::Utils::Exceptions::MissingArgumentError

Inherits:
JPushArgumentError show all
Defined in:
lib/jpush/utils/exceptions.rb

Instance Attribute Summary

Attributes inherited from JPushError

#message

Instance Method Summary collapse

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