Exception: P8push::Notification::APNSError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- P8push::Notification::APNSError
- Defined in:
- lib/p8push/notification.rb
Constant Summary collapse
- CODES =
{ 0 => 'No errors encountered', 1 => 'Processing error', 2 => 'Missing device token', 3 => 'Missing topic', 4 => 'Missing payload', 5 => 'Invalid token size', 6 => 'Invalid topic size', 7 => 'Invalid payload size', 8 => 'Invalid token', 10 => 'Shutdown', 255 => 'Unknown error' }
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ APNSError
constructor
A new instance of APNSError.
Constructor Details
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
20 21 22 |
# File 'lib/p8push/notification.rb', line 20 def code @code end |