Exception: Gcm::Errors::ServiceUnavailable

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gcm_rails_mongo_mapper/gcm_rails_mongo_mapper.rb

Overview

Indicates that server is temporarily unavailable (i.e because of timeouts, etc.) Sender must retry later, honoring any Retry-After header included in the response. Application servers must implement exponential back-off

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ServiceUnavailable

Returns a new instance of ServiceUnavailable.



64
65
66
# File 'lib/gcm_rails_mongo_mapper/gcm_rails_mongo_mapper.rb', line 64

def initialize(message)
  super("Service is currently unavailable. Try again later: '#{message}'")
end