Exception: Rpush::Apns::DisconnectionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rpush/daemon/apns/disconnection_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDisconnectionError

Returns a new instance of DisconnectionError.



6
7
8
9
# File 'lib/rpush/daemon/apns/disconnection_error.rb', line 6

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/rpush/daemon/apns/disconnection_error.rb', line 4

def code
  @code
end

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/rpush/daemon/apns/disconnection_error.rb', line 4

def description
  @description
end

Instance Method Details

#messageObject



15
16
17
# File 'lib/rpush/daemon/apns/disconnection_error.rb', line 15

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

#to_sObject



11
12
13
# File 'lib/rpush/daemon/apns/disconnection_error.rb', line 11

def to_s
  message
end