Exception: Push::DisconnectionError
- Inherits:
-
StandardError
- Object
- StandardError
- Push::DisconnectionError
- Defined in:
- lib/push/daemon/disconnection_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Instance Method Summary collapse
-
#initialize ⇒ DisconnectionError
constructor
A new instance of DisconnectionError.
- #message ⇒ Object
Constructor Details
#initialize ⇒ DisconnectionError
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/push/daemon/disconnection_error.rb', line 3 def code @code end |
#description ⇒ Object (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
#message ⇒ Object
10 11 12 |
# File 'lib/push/daemon/disconnection_error.rb', line 10 def "The APNs disconnected without returning an error. This may indicate you are using an invalid certificate for the host." end |