Sha256: 1056e4f69a84b8b9bb024140f182cfb9f53e18382bee6f224f78468b9f943a01
Contents?: true
Size: 550 Bytes
Versions: 58
Compression:
Stored size: 550 Bytes
Contents
module Rpush class RetryableError < 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 "Retryable error for #{@notification_id}, received error #{@code} (#{@description}) - retry after #{@response.header['retry-after']}" end end class RateLimitError < RetryableError; end end
Version data entries
58 entries across 58 versions & 2 rubygems