Exception: JPush::Utils::Exceptions::InvalidWordError

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, word) ⇒ InvalidWordError

Returns a new instance of InvalidWordError.



35
36
37
38
# File 'lib/jpush/utils/exceptions.rb', line 35

def initialize(name, word)
  super("invalid #{name}: #{word} ( #{name} can only contain letters, numbers,
    '_', Chinese character and special characters(@!#$&*+=.|))")
end