Sha256: 28c1ad2f41e555b462ac5a4e5f17b3cff241128ba36adcb2eddac714d4c524fe

Contents?: true

Size: 451 Bytes

Versions: 2

Compression:

Stored size: 451 Bytes

Contents

module Rpush
  module Apns
    class DisconnectionError < StandardError
      attr_reader :code, :description

      def initialize
        @code = nil
        @description = "APNs disconnected without returning an error."
      end

      def to_s
        message
      end

      def message
        "The APNs disconnected without returning an error. This may indicate you are using an invalid certificate for the host."
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rpush-1.0.0-java lib/rpush/daemon/apns/disconnection_error.rb
rpush-1.0.0 lib/rpush/daemon/apns/disconnection_error.rb