Exception: JPush::Utils::Exceptions::InvalidArgumentError

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(invalid_args, msg = nil) ⇒ InvalidArgumentError

Returns a new instance of InvalidArgumentError.



27
28
29
30
31
# File 'lib/jpush/utils/exceptions.rb', line 27

def initialize(invalid_args, msg = nil)
  list = invalid_args.map {|arg| arg.to_s} * (', ')
  msg ||= "#{list} can not be blank."
  super(msg)
end