Sha256: a3a1f2c7f77182cd5f60ea3fe461a182f121d3640b124a2850faf05af955fba8
Contents?: true
Size: 614 Bytes
Versions: 4
Compression:
Stored size: 614 Bytes
Contents
module Webpush class Error < RuntimeError; end class ConfigurationError < Error; end class ResponseError < Error; attr_reader :response, :host def initialize(response, host) @response = response @host = host super "host: #{host}, #{@response.inspect}\nbody:\n#{@response.body}" end end class InvalidSubscription < ResponseError; end class ExpiredSubscription < ResponseError; end class Unauthorized < ResponseError; end class PayloadTooLarge < ResponseError; end class TooManyRequests < ResponseError; end class PushServiceError < ResponseError; end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
webpush-0.3.8 | lib/webpush/errors.rb |
webpush-0.3.7 | lib/webpush/errors.rb |
webpush-0.3.6 | lib/webpush/errors.rb |
webpush-0.3.5 | lib/webpush/errors.rb |