Exception: JPush::Utils::Exceptions::InvalidArgumentError
- Inherits:
-
JPushArgumentError
- Object
- StandardError
- JPushError
- JPushArgumentError
- JPush::Utils::Exceptions::InvalidArgumentError
- Defined in:
- lib/jpush/utils/exceptions.rb
Instance Attribute Summary
Attributes inherited from JPushError
Instance Method Summary collapse
-
#initialize(invalid_args, msg = nil) ⇒ InvalidArgumentError
constructor
A new instance of InvalidArgumentError.
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 |