Exception: JPush::Utils::Exceptions::InvalidElementError

Inherits:
JPushError
  • Object
show all
Defined in:
lib/jpush/utils/exceptions.rb

Instance Attribute Summary

Attributes inherited from JPushError

#message

Instance Method Summary collapse

Constructor Details

#initialize(name, invalid_element, list) ⇒ InvalidElementError

Returns a new instance of InvalidElementError.



42
43
44
# File 'lib/jpush/utils/exceptions.rb', line 42

def initialize(name, invalid_element, list)
  super("invalid #{name}: #{invalid_element} ( #{name} only support #{list * (', ')} )")
end