Exception: Xiaomi::Push::FailuresError
- Defined in:
- lib/xiaomi/push/error.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(code, error) ⇒ FailuresError
constructor
A new instance of FailuresError.
Constructor Details
#initialize(code, error) ⇒ FailuresError
Returns a new instance of FailuresError.
11 12 13 14 15 16 |
# File 'lib/xiaomi/push/error.rb', line 11 def initialize(code, error) @code = code @error = error super "[#{@code}] #{@error}" end |