Exception: Rpush::Apns::DisconnectionError
- Inherits:
-
StandardError
- Object
- StandardError
- Rpush::Apns::DisconnectionError
- Defined in:
- lib/rpush/daemon/apns/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
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ DisconnectionError
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/rpush/daemon/apns/disconnection_error.rb', line 4 def code @code end |
#description ⇒ Object (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
#message ⇒ Object
15 16 17 |
# File 'lib/rpush/daemon/apns/disconnection_error.rb', line 15 def "The APNs disconnected without returning an error. This may indicate you are using an invalid certificate for the host." end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/rpush/daemon/apns/disconnection_error.rb', line 11 def to_s end |