The LSPushServerException class incapsulates exceptions thrown due to a specific error returned by the Server.
More...
#import <LSPushServerException.h>
The LSPushServerException class incapsulates exceptions thrown due to a specific error returned by the Server.
- (id) initWithCode: |
|
(int) |
errorCode |
reason: |
|
(NSString *) |
reason |
, |
|
|
... |
|
|
| |
Initializes an LSPushServerException object with specified parameters.
- Parameters
-
errorCode | The specific error code returned by the Server. |
reason | Reason of the exception. |
- Returns
- The LSPushServerException object.
- (id) initWithCode: |
|
(int) |
errorCode |
reason: |
|
(NSString *) |
reason |
arguments: |
|
(va_list) |
arguments |
|
|
| |
Initializes an LSPushServerException object with specified parameters.
- Parameters
-
errorCode | The specific error code returned by the Server. |
reason | Reason of the exception. |
arguments | Variable argument list of parameters. |
- Returns
- The LSPushServerException object.
Creates and raises an LSPushServerException object with specified parameters.
- Parameters
-
errorCode | The specific error code returned by the Server. |
reason | Reason of the exception. |
- Returns
- The LSPushServerException object.
The specific error code returned by the Server.
See the text protocol documentation for a reference of the error codes that can be issued in response to the operation performed (i.e. stream/poll, subscription, or synchronous sendMessage request). On the other hand, if the error is in response to a MPN request, then the following codes may be received:
-
17: bad Data Adapter name or default Data Adapter not defined for the current Adapter Set
-
21: bad Group name
-
22: bad Group name for this Schema
-
23: bad Schema name
-
24: mode not allowed for an Item
-
40: mobile push notifications (MPN) are not supported by this Server instance
-
41: mobile push notification (MPN) request timed out
-
42: mobile push notification (MPN) request specified an invalid platform
-
43: mobile push notification (MPN) request specified an invalid application ID
-
44: mobile push notification (MPN) request specified an invalid format or syntax in trigger expression
-
45: mobile push notification (MPN) request specified an unknown device token
-
46: mobile push notification (MPN) request specified an unknown or invalid subscription ID
-
47: mobile push notification (MPN) request specified an invalid argument name in format or trigger expression
-
48: mobile push notification (MPN) request specified a device token that has been invalidated by APNS Feedback Service
-
49: mobile push notification (MPN) request specified a subscription parameter that exceeded maximum length
-
50: mobile push notification (MPN) request specified a subscription with no fields or no items
-
<= 0: the Metadata Adapter has refused the connection or subscription request, the code value is dependent on the specific Metadata Adapter implementation
The documentation for this class was generated from the following file: