Exception: Xiaomi::Push::FailuresError

Inherits:
Error
  • Object
show all
Defined in:
lib/xiaomi/push/error.rb

Instance Attribute Summary

Attributes inherited from Error

#error, #url

Instance Method Summary collapse

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