Exception: Rapns::DeliveryError
- Inherits:
-
StandardError
- Object
- StandardError
- Rapns::DeliveryError
- Defined in:
- lib/rapns/daemon/delivery_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(code, notification_id, description) ⇒ DeliveryError
constructor
A new instance of DeliveryError.
- #message ⇒ Object
Constructor Details
#initialize(code, notification_id, description) ⇒ DeliveryError
Returns a new instance of DeliveryError.
5 6 7 8 9 |
# File 'lib/rapns/daemon/delivery_error.rb', line 5 def initialize(code, notification_id, description) @code = code @notification_id = notification_id @description = description end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/rapns/daemon/delivery_error.rb', line 3 def code @code end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/rapns/daemon/delivery_error.rb', line 3 def description @description end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/rapns/daemon/delivery_error.rb', line 11 def "Unable to deliver notification #{@notification_id}, received APN error #{@code} (#{@description})" end |