Exception: Push::DisconnectionError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDisconnectionError

Returns a new instance of DisconnectionError.



5
6
7
8
# File 'lib/push/daemon/disconnection_error.rb', line 5

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/push/daemon/disconnection_error.rb', line 3

def code
  @code
end

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/push/daemon/disconnection_error.rb', line 3

def description
  @description
end

Instance Method Details

#messageObject



10
11
12
# File 'lib/push/daemon/disconnection_error.rb', line 10

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