Sha256: 4b8a86b07b6046f824c11a888bfd5338ed7712737bfea64249362a68098612f3
Contents?: true
Size: 512 Bytes
Versions: 3
Compression:
Stored size: 512 Bytes
Contents
module Rpush class TooManyRequestsError < StandardError attr_reader :code, :description, :response def initialize(code, notification_id, description, response) @code = code @notification_id = notification_id @description = description @response = response end def to_s message end def message "Too many requests for #{@notification_id}, received error #{@code} (#{@description}) - retry after #{@response.header['retry-after']}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rpush-2.0.0.beta1 | lib/rpush/daemon/too_many_requests_error.rb |
rpush-1.0.0-java | lib/rpush/daemon/too_many_requests_error.rb |
rpush-1.0.0 | lib/rpush/daemon/too_many_requests_error.rb |